forked from TrueCloudLab/neoneo-go
compiler: replace ROLL(2) with equivalent ROT
This commit is contained in:
parent
28571bd3dc
commit
e0f47decc7
1 changed files with 1 additions and 2 deletions
|
@ -114,8 +114,7 @@ func (c *codegen) emitStoreLocal(pos int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
emitInt(c.prog.BinWriter, int64(pos))
|
emitInt(c.prog.BinWriter, int64(pos))
|
||||||
emitInt(c.prog.BinWriter, 2)
|
emitOpcode(c.prog.BinWriter, opcode.ROT)
|
||||||
emitOpcode(c.prog.BinWriter, opcode.ROLL)
|
|
||||||
emitOpcode(c.prog.BinWriter, opcode.SETITEM)
|
emitOpcode(c.prog.BinWriter, opcode.SETITEM)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue