Commit d6549184 authored by fpizlo@apple.com's avatar fpizlo@apple.com

Another PPC build fix.

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



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 217ff7d7
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
......@@ -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)
{
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment