summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/llint/LLIntData.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-05-30 12:48:17 +0200
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-05-30 12:48:17 +0200
commit881da28418d380042aa95a97f0cbd42560a64f7c (patch)
treea794dff3274695e99c651902dde93d934ea7a5af /Source/JavaScriptCore/llint/LLIntData.h
parent7e104c57a70fdf551bb3d22a5d637cdcbc69dbea (diff)
parent0fcedcd17cc00d3dd44c718b3cb36c1033319671 (diff)
downloadqtwebkit-881da28418d380042aa95a97f0cbd42560a64f7c.tar.gz
Merge 'wip/next' into dev
Change-Id: Iff9ee5e23bb326c4371ec8ed81d56f2f05d680e9
Diffstat (limited to 'Source/JavaScriptCore/llint/LLIntData.h')
-rw-r--r--Source/JavaScriptCore/llint/LLIntData.h36
1 files changed, 6 insertions, 30 deletions
diff --git a/Source/JavaScriptCore/llint/LLIntData.h b/Source/JavaScriptCore/llint/LLIntData.h
index 8ed2bceda..7e7794b14 100644
--- a/Source/JavaScriptCore/llint/LLIntData.h
+++ b/Source/JavaScriptCore/llint/LLIntData.h
@@ -28,14 +28,13 @@
#include "JSCJSValue.h"
#include "Opcode.h"
-#include <wtf/Platform.h>
namespace JSC {
class VM;
struct Instruction;
-#if ENABLE(LLINT_C_LOOP)
+#if !ENABLE(JIT)
typedef OpcodeID LLIntCode;
#else
typedef void (*LLIntCode)();
@@ -43,15 +42,13 @@ typedef void (*LLIntCode)();
namespace LLInt {
-#if ENABLE(LLINT)
-
class Data {
public:
static void performAssertions(VM&);
private:
static Instruction* s_exceptionInstructions;
- static Opcode* s_opcodeMap;
+ static Opcode s_opcodeMap[numOpcodeIDs];
friend void initialize();
@@ -87,33 +84,12 @@ ALWAYS_INLINE void* getCodePtr(OpcodeID id)
return reinterpret_cast<void*>(getOpcode(id));
}
-#else // !ENABLE(LLINT)
-
-#if COMPILER(CLANG)
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wmissing-noreturn"
-#endif
-
-class Data {
-public:
- static void performAssertions(VM&) { }
-};
-
-#if COMPILER(CLANG)
-#pragma clang diagnostic pop
-#endif
-
-#endif // !ENABLE(LLINT)
-
-ALWAYS_INLINE void* getOpcode(void llintOpcode())
-{
- return bitwise_cast<void*>(llintOpcode);
-}
-
-ALWAYS_INLINE void* getCodePtr(void glueHelper())
+#if ENABLE(JIT)
+ALWAYS_INLINE LLIntCode getCodeFunctionPtr(OpcodeID codeId)
{
- return bitwise_cast<void*>(glueHelper);
+ return reinterpret_cast<LLIntCode>(getCodePtr(codeId));
}
+#endif
ALWAYS_INLINE void* getCodePtr(JSC::EncodedJSValue glueHelper())
{