Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Commit

Permalink
Remove excess padding from EXTENDED_ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
abonie committed Aug 21, 2017
1 parent b5a713c commit 42ab063
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions batavia/VirtualMachine.js
Expand Up @@ -837,35 +837,14 @@ VirtualMachine.prototype.unpack_code = function(code) {
lo = code.co_code.val[pos++]
hi = code.co_code.val[pos++]
extra = (lo << 16) | (hi << 24)
// emulate four NOPs
// emulate NOP
unpacked_code[opcode_start_pos] = {
'opoffset': opcode_start_pos,
'opcode': dis.NOP,
'op_method': this.dispatch_table[dis.NOP],
'args': [],
'next_pos': pos
}
unpacked_code[opcode_start_pos + 1] = {
'opoffset': opcode_start_pos + 1,
'opcode': dis.NOP,
'op_method': this.dispatch_table[dis.NOP],
'args': [],
'next_pos': pos
}
unpacked_code[opcode_start_pos + 2] = {
'opoffset': opcode_start_pos + 2,
'opcode': dis.NOP,
'op_method': this.dispatch_table[dis.NOP],
'args': [],
'next_pos': pos
}
unpacked_code[opcode_start_pos + 3] = {
'opoffset': opcode_start_pos + 3,
'opcode': dis.NOP,
'op_method': this.dispatch_table[dis.NOP],
'args': [],
'next_pos': pos
}
continue
}

Expand Down

0 comments on commit 42ab063

Please sign in to comment.