Title: [95772] trunk/Source/_javascript_Core
Revision
95772
Author
fpi...@apple.com
Date
2011-09-22 19:16:00 -0700 (Thu, 22 Sep 2011)

Log Message

Another PPC build fix.

* runtime/Executable.cpp:
* runtime/Executable.h:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (95771 => 95772)


--- trunk/Source/_javascript_Core/ChangeLog	2011-09-23 01:56:59 UTC (rev 95771)
+++ trunk/Source/_javascript_Core/ChangeLog	2011-09-23 02:16:00 UTC (rev 95772)
@@ -1,3 +1,10 @@
+2011-09-22  Filip Pizlo  <fpi...@apple.com>
+
+        Another PPC build fix.
+
+        * runtime/Executable.cpp:
+        * runtime/Executable.h:
+
 2011-09-22  Dean Jackson  <d...@apple.com>
 
         Add ENABLE_CSS_FILTERS

Modified: trunk/Source/_javascript_Core/runtime/Executable.cpp (95771 => 95772)


--- trunk/Source/_javascript_Core/runtime/Executable.cpp	2011-09-23 01:56:59 UTC (rev 95771)
+++ trunk/Source/_javascript_Core/runtime/Executable.cpp	2011-09-23 02:16:00 UTC (rev 95772)
@@ -84,6 +84,7 @@
 }
 #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 @@
     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 @@
     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 @@
     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 @@
     return 0;
 }
 
+#if ENABLE(JIT)
 void FunctionExecutable::jettisonOptimizedCodeForCall(JSGlobalData& globalData)
 {
     jettisonCodeBlock(globalData, m_codeBlockForCall);
@@ -573,6 +580,7 @@
     m_jitCodeForConstruct = m_codeBlockForConstruct->getJITCode();
     m_jitCodeForConstructWithArityCheck = m_codeBlockForConstruct->getJITCodeWithArityCheck();
 }
+#endif
 
 void FunctionExecutable::visitChildren(SlotVisitor& visitor)
 {

Modified: trunk/Source/_javascript_Core/runtime/Executable.h (95771 => 95772)


--- trunk/Source/_javascript_Core/runtime/Executable.h	2011-09-23 01:56:59 UTC (rev 95771)
+++ trunk/Source/_javascript_Core/runtime/Executable.h	2011-09-23 02:16:00 UTC (rev 95772)
@@ -318,7 +318,9 @@
         
         JSObject* compileOptimized(ExecState*, ScopeChainNode*);
         
+#if ENABLE(JIT)
         void jettisonOptimizedCode(JSGlobalData&);
+#endif
 
         EvalCodeBlock& generatedBytecode()
         {
@@ -385,7 +387,9 @@
 
         JSObject* compileOptimized(ExecState*, ScopeChainNode*);
         
+#if ENABLE(JIT)
         void jettisonOptimizedCode(JSGlobalData&);
+#endif
 
         ProgramCodeBlock& generatedBytecode()
         {
@@ -470,7 +474,9 @@
 
         JSObject* compileOptimizedForCall(ExecState*, ScopeChainNode*, ExecState* calleeArgsExec = 0);
         
+#if ENABLE(JIT)
         void jettisonOptimizedCodeForCall(JSGlobalData&);
+#endif
 
         bool isGeneratedForCall() const
         {
@@ -495,7 +501,9 @@
 
         JSObject* compileOptimizedForConstruct(ExecState*, ScopeChainNode*, ExecState* calleeArgsExec = 0);
         
+#if ENABLE(JIT)
         void jettisonOptimizedCodeForConstruct(JSGlobalData&);
+#endif
 
         bool isGeneratedForConstruct() const
         {
@@ -536,6 +544,7 @@
             return compileOptimizedForConstruct(exec, scopeChainNode, exec);
         }
         
+#if ENABLE(JIT)
         void jettisonOptimizedCodeFor(JSGlobalData& globalData, CodeSpecializationKind kind)
         {
             if (kind == CodeForCall) 
@@ -545,6 +554,7 @@
                 jettisonOptimizedCodeForConstruct(globalData);
             }
         }
+#endif
         
         bool isGeneratedFor(CodeSpecializationKind kind)
         {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to