Skip to content
Permalink
Browse files

8239454: LLIntData : invalid opcode returned for 16 and 32 bit wide i…

…nstructions

Reviewed-by: ghb, kcr
  • Loading branch information
arun-Joseph authored and Guru Hb committed Feb 20, 2020
1 parent 48ddd80 commit d8e7f850f6c046f827d0a89c5404e41edf705d7e
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/javafx.web/src/main/native/Source/JavaScriptCore/llint/LLIntData.h
@@ -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
}

@@ -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
}

0 comments on commit d8e7f85

Please sign in to comment.
You can’t perform that action at this time.