Skip to content

Commit

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

Reviewed-by: ghb, kcr
  • Loading branch information
arun-joseph authored and johanvos committed Apr 11, 2020
1 parent a56d1ff commit cf47a95
Showing 1 changed file with 2 additions and 2 deletions.
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 cf47a95

Please sign in to comment.