slight optimization for creating the asmpatterns list

This commit is contained in:
Irmen de Jong 2019-07-20 22:37:16 +02:00
parent c6fdd65c63
commit 173663380b
2 changed files with 414 additions and 410 deletions

View File

@ -536,7 +536,7 @@ class AsmGen(private val options: CompilationOptions, private val program: Inter
}
// add any matching patterns from the big list
for(pattern in patterns) {
for(pattern in Patterns.patterns) {
if(pattern.sequence.size > segment.size || (pattern.altSequence!=null && pattern.altSequence.size > segment.size))
continue // don't accept patterns that don't fit
val opcodesList = opcodes.subList(0, pattern.sequence.size)

File diff suppressed because it is too large Load Diff