(value)
| 272 | } |
| 273 | |
| 274 | push_value(value) { |
| 275 | const position = this.position; |
| 276 | if (position >= this.stack_size) { |
| 277 | throw Error(`no more space on the stack, pushed value: ${value}`); |
| 278 | } |
| 279 | |
| 280 | const values = lohi_from_one(value); |
| 281 | const stack = this.stack; |
| 282 | stack.setUint32(position, values[0], true); |
| 283 | stack.setUint32(position + 4, values[1], true); |
| 284 | |
| 285 | this.position += 8; |
| 286 | } |
| 287 | |
| 288 | get_gadget(insn_str) { |
| 289 | const addr = this.gadgets.get(insn_str); |
no test coverage detected