diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
commit | 284837daa07b29d6a63a748544a90b1f5842ac5c (patch) | |
tree | ecd258180bde91fe741e0cfd2638beb3c6da7e8e /Source/JavaScriptCore/jit/JITCode.h | |
parent | 2e2ba8ff45915f40ed3e014101269c175f2a89a0 (diff) | |
download | qtwebkit-284837daa07b29d6a63a748544a90b1f5842ac5c.tar.gz |
Imported WebKit commit 68645295d2e3e09af2c942f092556f06aa5f8b0d (http://svn.webkit.org/repository/webkit/trunk@128073)
New snapshot
Diffstat (limited to 'Source/JavaScriptCore/jit/JITCode.h')
-rw-r--r-- | Source/JavaScriptCore/jit/JITCode.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/jit/JITCode.h b/Source/JavaScriptCore/jit/JITCode.h index 478fcc7bf..e39b4f98d 100644 --- a/Source/JavaScriptCore/jit/JITCode.h +++ b/Source/JavaScriptCore/jit/JITCode.h @@ -26,7 +26,7 @@ #ifndef JITCode_h #define JITCode_h -#if ENABLE(JIT) +#if ENABLE(JIT) || ENABLE(LLINT) #include "CallFrame.h" #include "JSValue.h" #include "Disassembler.h" @@ -42,7 +42,7 @@ namespace JSC { #endif class JITCode { -#if ENABLE(JIT) +#if ENABLE(JIT) || ENABLE(LLINT) typedef MacroAssemblerCodeRef CodeRef; typedef MacroAssemblerCodePtr CodePtr; #else @@ -77,7 +77,7 @@ namespace JSC { return jitType == InterpreterThunk || jitType == BaselineJIT; } -#if ENABLE(JIT) +#if ENABLE(JIT) || ENABLE(LLINT) JITCode() : m_jitType(None) { @@ -127,12 +127,14 @@ namespace JSC { return static_cast<unsigned>(result); } +#if ENABLE(JIT) // Execute the code! inline JSValue execute(RegisterFile* registerFile, CallFrame* callFrame, JSGlobalData* globalData) { JSValue result = JSValue::decode(ctiTrampoline(m_ref.code().executableAddress(), registerFile, callFrame, 0, 0, globalData)); return globalData->exception ? jsNull() : result; } +#endif void* start() const { @@ -182,7 +184,7 @@ namespace JSC { CodeRef m_ref; JITType m_jitType; -#endif // ENABLE(JIT) +#endif // ENABLE(JIT) || ENABLE(LLINT) }; }; |