core/vm: optimize jumpdest analysis (#23500)
core/vm: optimize PUSH opcode discrimination
This commit is contained in:
parent
b453767ccd
commit
997f1c4f0a
@ -76,7 +76,7 @@ func codeBitmapInternal(code, bits bitvec) bitvec {
|
||||
for pc := uint64(0); pc < uint64(len(code)); {
|
||||
op := OpCode(code[pc])
|
||||
pc++
|
||||
if op < PUSH1 || op > PUSH32 {
|
||||
if int8(op) < int8(PUSH1) { // If not PUSH (the int8(op) > int(PUSH32) is always false).
|
||||
continue
|
||||
}
|
||||
numbits := op - PUSH1 + 1
|
||||
|
Loading…
Reference in New Issue
Block a user