Another PPC build fix.
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Sep 2011 02:16:00 +0000 (02:16 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Sep 2011 02:16:00 +0000 (02:16 +0000)
* runtime/Executable.cpp:
* runtime/Executable.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95772 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/Executable.cpp
Source/JavaScriptCore/runtime/Executable.h

index 2ecc28b..8117d3f 100644 (file)
@@ -1,3 +1,10 @@
+2011-09-22  Filip Pizlo  <fpizlo@apple.com>
+
+        Another PPC build fix.
+
+        * runtime/Executable.cpp:
+        * runtime/Executable.h:
+
 2011-09-22  Dean Jackson  <dino@apple.com>
 
         Add ENABLE_CSS_FILTERS
index 0c59319..15758cf 100644 (file)
@@ -84,6 +84,7 @@ DFG::Intrinsic NativeExecutable::intrinsic() const
 }
 #endif
 
+#if ENABLE(JIT)
 // Utility method used for jettisoning code blocks.
 template<typename T>
 static void jettisonCodeBlock(JSGlobalData& globalData, OwnPtr<T>& codeBlock)
@@ -95,6 +96,7 @@ static void jettisonCodeBlock(JSGlobalData& globalData, OwnPtr<T>& codeBlock)
     codeBlockToJettison->unlinkIncomingCalls();
     globalData.heap.addJettisonedCodeBlock(static_pointer_cast<CodeBlock>(codeBlockToJettison.release()));
 }
+#endif
 
 const ClassInfo ScriptExecutable::s_info = { "ScriptExecutable", &ExecutableBase::s_info, 0, 0 };
 
@@ -223,12 +225,14 @@ JSObject* EvalExecutable::compileInternal(ExecState* exec, ScopeChainNode* scope
     return 0;
 }
 
+#if ENABLE(JIT)
 void EvalExecutable::jettisonOptimizedCode(JSGlobalData& globalData)
 {
     jettisonCodeBlock(globalData, m_evalCodeBlock);
     m_jitCodeForCall = m_evalCodeBlock->getJITCode();
     ASSERT(!m_jitCodeForCallWithArityCheck);
 }
+#endif
 
 void EvalExecutable::visitChildren(SlotVisitor& visitor)
 {
@@ -349,12 +353,14 @@ JSObject* ProgramExecutable::compileInternal(ExecState* exec, ScopeChainNode* sc
     return 0;
 }
 
+#if ENABLE(JIT)
 void ProgramExecutable::jettisonOptimizedCode(JSGlobalData& globalData)
 {
     jettisonCodeBlock(globalData, m_programCodeBlock);
     m_jitCodeForCall = m_programCodeBlock->getJITCode();
     ASSERT(!m_jitCodeForCallWithArityCheck);
 }
+#endif
 
 void ProgramExecutable::unlinkCalls()
 {
@@ -560,6 +566,7 @@ JSObject* FunctionExecutable::compileForConstructInternal(ExecState* exec, Scope
     return 0;
 }
 
+#if ENABLE(JIT)
 void FunctionExecutable::jettisonOptimizedCodeForCall(JSGlobalData& globalData)
 {
     jettisonCodeBlock(globalData, m_codeBlockForCall);
@@ -573,6 +580,7 @@ void FunctionExecutable::jettisonOptimizedCodeForConstruct(JSGlobalData& globalD
     m_jitCodeForConstruct = m_codeBlockForConstruct->getJITCode();
     m_jitCodeForConstructWithArityCheck = m_codeBlockForConstruct->getJITCodeWithArityCheck();
 }
+#endif
 
 void FunctionExecutable::visitChildren(SlotVisitor& visitor)
 {
index 77b963e..03f7e02 100644 (file)
@@ -318,7 +318,9 @@ namespace JSC {
         
         JSObject* compileOptimized(ExecState*, ScopeChainNode*);
         
+#if ENABLE(JIT)
         void jettisonOptimizedCode(JSGlobalData&);
+#endif
 
         EvalCodeBlock& generatedBytecode()
         {
@@ -385,7 +387,9 @@ namespace JSC {
 
         JSObject* compileOptimized(ExecState*, ScopeChainNode*);
         
+#if ENABLE(JIT)
         void jettisonOptimizedCode(JSGlobalData&);
+#endif
 
         ProgramCodeBlock& generatedBytecode()
         {
@@ -470,7 +474,9 @@ namespace JSC {
 
         JSObject* compileOptimizedForCall(ExecState*, ScopeChainNode*, ExecState* calleeArgsExec = 0);
         
+#if ENABLE(JIT)
         void jettisonOptimizedCodeForCall(JSGlobalData&);
+#endif
 
         bool isGeneratedForCall() const
         {
@@ -495,7 +501,9 @@ namespace JSC {
 
         JSObject* compileOptimizedForConstruct(ExecState*, ScopeChainNode*, ExecState* calleeArgsExec = 0);
         
+#if ENABLE(JIT)
         void jettisonOptimizedCodeForConstruct(JSGlobalData&);
+#endif
 
         bool isGeneratedForConstruct() const
         {
@@ -536,6 +544,7 @@ namespace JSC {
             return compileOptimizedForConstruct(exec, scopeChainNode, exec);
         }
         
+#if ENABLE(JIT)
         void jettisonOptimizedCodeFor(JSGlobalData& globalData, CodeSpecializationKind kind)
         {
             if (kind == CodeForCall) 
@@ -545,6 +554,7 @@ namespace JSC {
                 jettisonOptimizedCodeForConstruct(globalData);
             }
         }
+#endif
         
         bool isGeneratedFor(CodeSpecializationKind kind)
         {