Skip to content

Commit

Permalink
8239454: LLIntData : invalid opcode returned for 16 and 32 bit wide i…
Browse files Browse the repository at this point in the history
…nstructions

Reviewed-by: ghb, kcr
  • Loading branch information
arun-joseph authored and Guru Hb committed Feb 20, 2020
1 parent 48ddd80 commit d8e7f85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ inline Opcode getOpcodeWide16(OpcodeID id)
#if ENABLE(COMPUTED_GOTO_OPCODES)
return g_opcodeMapWide16[id];
#else
return static_cast<Opcode>(id - numOpcodeIDs);
return static_cast<Opcode>(id + numOpcodeIDs);
#endif
}

Expand All @@ -114,7 +114,7 @@ inline Opcode getOpcodeWide32(OpcodeID id)
#if ENABLE(COMPUTED_GOTO_OPCODES)
return g_opcodeMapWide32[id];
#else
return static_cast<Opcode>(id - numOpcodeIDs);
return static_cast<Opcode>(id + numOpcodeIDs*2);
#endif
}

Expand Down

0 comments on commit d8e7f85

Please sign in to comment.