compiler: replace ROLL(2) with equivalent ROT

This commit is contained in:
Evgenii Stratonikov 2020-01-28 15:48:01 +03:00
parent 28571bd3dc
commit e0f47decc7

View file

@ -114,8 +114,7 @@ func (c *codegen) emitStoreLocal(pos int) {
}
emitInt(c.prog.BinWriter, int64(pos))
emitInt(c.prog.BinWriter, 2)
emitOpcode(c.prog.BinWriter, opcode.ROLL)
emitOpcode(c.prog.BinWriter, opcode.ROT)
emitOpcode(c.prog.BinWriter, opcode.SETITEM)
}