Skip to content

Commit d8e7f85

Browse files
arun-josephGuru Hb
authored andcommitted
8239454: LLIntData : invalid opcode returned for 16 and 32 bit wide instructions
Reviewed-by: ghb, kcr
1 parent 48ddd80 commit d8e7f85

File tree

1 file changed

+2
-2
lines changed
  • modules/javafx.web/src/main/native/Source/JavaScriptCore/llint

1 file changed

+2
-2
lines changed

modules/javafx.web/src/main/native/Source/JavaScriptCore/llint/LLIntData.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ inline Opcode getOpcodeWide16(OpcodeID id)
105105
#if ENABLE(COMPUTED_GOTO_OPCODES)
106106
return g_opcodeMapWide16[id];
107107
#else
108-
return static_cast<Opcode>(id - numOpcodeIDs);
108+
return static_cast<Opcode>(id + numOpcodeIDs);
109109
#endif
110110
}
111111

@@ -114,7 +114,7 @@ inline Opcode getOpcodeWide32(OpcodeID id)
114114
#if ENABLE(COMPUTED_GOTO_OPCODES)
115115
return g_opcodeMapWide32[id];
116116
#else
117-
return static_cast<Opcode>(id - numOpcodeIDs);
117+
return static_cast<Opcode>(id + numOpcodeIDs*2);
118118
#endif
119119
}
120120

0 commit comments

Comments
 (0)