Ignore:
Timestamp:
Feb 21, 2012, 8:26:12 AM (14 years ago)
Author:
Adam Roben
Message:

Roll out r108309, r108323, and r108326

They broke the 32-bit Lion build.

Original bugs is <http://webkit.org/b/75812> <rdar://problem/10079694>.

Source/JavaScriptCore:

  • CMakeLists.txt:
  • GNUmakefile.am:
  • GNUmakefile.list.am:
  • JavaScriptCore.pri:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops:
  • JavaScriptCore.vcproj/JavaScriptCore/copy-files.cmd:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • Target.pri:
  • assembler/LinkBuffer.h:
  • assembler/MacroAssemblerCodeRef.h:
  • bytecode/BytecodeConventions.h: Removed.
  • bytecode/CallLinkStatus.cpp:
  • bytecode/CallLinkStatus.h:
  • bytecode/CodeBlock.cpp:
  • bytecode/CodeBlock.h:
  • bytecode/GetByIdStatus.cpp:
  • bytecode/GetByIdStatus.h:
  • bytecode/Instruction.h:
  • bytecode/LLIntCallLinkInfo.h: Removed.
  • bytecode/MethodCallLinkStatus.cpp:
  • bytecode/Opcode.cpp:
  • bytecode/Opcode.h:
  • bytecode/PutByIdStatus.cpp:
  • bytecode/PutByIdStatus.h:
  • bytecompiler/BytecodeGenerator.cpp:
  • dfg/DFGByteCodeParser.cpp:
  • dfg/DFGCapabilities.h:
  • dfg/DFGOSRExitCompiler.cpp:
  • dfg/DFGOperations.cpp:
  • heap/Heap.h:
  • heap/MarkStack.cpp:
  • heap/MarkedAllocator.h:
  • heap/MarkedSpace.h:
  • interpreter/CallFrame.cpp:
  • interpreter/CallFrame.h:
  • interpreter/Interpreter.cpp:
  • interpreter/Interpreter.h:
  • interpreter/RegisterFile.h:
  • jit/ExecutableAllocator.h:
  • jit/HostCallReturnValue.cpp: Removed.
  • jit/HostCallReturnValue.h: Removed.
  • jit/JIT.cpp:
  • jit/JITCode.h:
  • jit/JITDriver.h:
  • jit/JITExceptions.cpp:
  • jit/JITInlineMethods.h:
  • jit/JITStubs.cpp:
  • jit/JITStubs.h:
  • jit/JSInterfaceJIT.h:
  • llint/LLIntCommon.h: Removed.
  • llint/LLIntData.cpp: Removed.
  • llint/LLIntData.h: Removed.
  • llint/LLIntEntrypoints.cpp: Removed.
  • llint/LLIntEntrypoints.h: Removed.
  • llint/LLIntExceptions.cpp: Removed.
  • llint/LLIntExceptions.h: Removed.
  • llint/LLIntOfflineAsmConfig.h: Removed.
  • llint/LLIntOffsetsExtractor.cpp: Removed.
  • llint/LLIntSlowPaths.cpp: Removed.
  • llint/LLIntSlowPaths.h: Removed.
  • llint/LLIntThunks.cpp: Removed.
  • llint/LLIntThunks.h: Removed.
  • llint/LowLevelInterpreter.asm: Removed.
  • llint/LowLevelInterpreter.cpp: Removed.
  • llint/LowLevelInterpreter.h: Removed.
  • offlineasm/armv7.rb: Removed.
  • offlineasm/asm.rb: Removed.
  • offlineasm/ast.rb: Removed.
  • offlineasm/backends.rb: Removed.
  • offlineasm/generate_offset_extractor.rb: Removed.
  • offlineasm/instructions.rb: Removed.
  • offlineasm/offset_extractor_constants.rb: Removed.
  • offlineasm/offsets.rb: Removed.
  • offlineasm/opt.rb: Removed.
  • offlineasm/parser.rb: Removed.
  • offlineasm/registers.rb: Removed.
  • offlineasm/self_hash.rb: Removed.
  • offlineasm/settings.rb: Removed.
  • offlineasm/transform.rb: Removed.
  • offlineasm/x86.rb: Removed.
  • runtime/CodeSpecializationKind.h: Removed.
  • runtime/CommonSlowPaths.h:
  • runtime/Executable.cpp:
  • runtime/Executable.h:
  • runtime/ExecutionHarness.h: Removed.
  • runtime/JSArray.h:
  • runtime/JSCell.h:
  • runtime/JSFunction.h:
  • runtime/JSGlobalData.cpp:
  • runtime/JSGlobalData.h:
  • runtime/JSGlobalObject.h:
  • runtime/JSObject.h:
  • runtime/JSPropertyNameIterator.h:
  • runtime/JSString.h:
  • runtime/JSTypeInfo.h:
  • runtime/JSValue.cpp:
  • runtime/JSValue.h:
  • runtime/JSVariableObject.h:
  • runtime/Options.cpp:
  • runtime/Options.h:
  • runtime/ScopeChain.h:
  • runtime/Structure.cpp:
  • runtime/Structure.h:
  • runtime/StructureChain.h:
  • wtf/InlineASM.h:
  • wtf/Platform.h:
  • wtf/SentinelLinkedList.h:
  • wtf/text/StringImpl.h:

Source/WebCore:

  • CMakeLists.txt:

Source/WebKit:

  • CMakeLists.txt:

Tools:

  • DumpRenderTree/efl/CMakeLists.txt:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/Executable.cpp

    r108309 r108358  
    3030#include "CodeBlock.h"
    3131#include "DFGDriver.h"
    32 #include "ExecutionHarness.h"
    3332#include "JIT.h"
    3433#include "JITDriver.h"
     
    9089static void jettisonCodeBlock(JSGlobalData& globalData, OwnPtr<T>& codeBlock)
    9190{
    92     ASSERT(JITCode::isOptimizingJIT(codeBlock->getJITType()));
     91    ASSERT(codeBlock->getJITType() != JITCode::BaselineJIT);
    9392    ASSERT(codeBlock->alternative());
    9493    OwnPtr<T> codeBlockToJettison = codeBlock.release();
     
    177176}
    178177
    179 #if ENABLE(JIT)
    180 void EvalExecutable::jitCompile(JSGlobalData& globalData)
    181 {
    182     bool result = jitCompileIfAppropriate(globalData, m_evalCodeBlock, m_jitCodeForCall, JITCode::bottomTierJIT());
    183     ASSERT_UNUSED(result, result);
    184 }
    185 #endif
    186 
    187 inline const char* samplingDescription(JITCode::JITType jitType)
    188 {
    189     switch (jitType) {
    190     case JITCode::InterpreterThunk:
    191         return "Interpreter Compilation (TOTAL)";
    192     case JITCode::BaselineJIT:
    193         return "Baseline Compilation (TOTAL)";
    194     case JITCode::DFGJIT:
    195         return "DFG Compilation (TOTAL)";
    196     default:
    197         ASSERT_NOT_REACHED();
    198         return 0;
    199     }
    200 }
    201 
    202178JSObject* EvalExecutable::compileInternal(ExecState* exec, ScopeChainNode* scopeChainNode, JITCode::JITType jitType)
    203179{
    204     SamplingRegion samplingRegion(samplingDescription(jitType));
     180    SamplingRegion samplingRegion(jitType == JITCode::BaselineJIT ? "Baseline Compilation (TOTAL)" : "DFG Compilation (TOTAL)");
    205181   
    206182#if !ENABLE(JIT)
     
    243219
    244220#if ENABLE(JIT)
    245     if (!prepareForExecution(*globalData, m_evalCodeBlock, m_jitCodeForCall, jitType))
     221    if (!jitCompileIfAppropriate(*globalData, m_evalCodeBlock, m_jitCodeForCall, jitType))
    246222        return 0;
    247223#endif
     
    328304}
    329305
    330 #if ENABLE(JIT)
    331 void ProgramExecutable::jitCompile(JSGlobalData& globalData)
    332 {
    333     bool result = jitCompileIfAppropriate(globalData, m_programCodeBlock, m_jitCodeForCall, JITCode::bottomTierJIT());
    334     ASSERT_UNUSED(result, result);
    335 }
    336 #endif
    337 
    338306JSObject* ProgramExecutable::compileInternal(ExecState* exec, ScopeChainNode* scopeChainNode, JITCode::JITType jitType)
    339307{
    340     SamplingRegion samplingRegion(samplingDescription(jitType));
     308    SamplingRegion samplingRegion(jitType == JITCode::BaselineJIT ? "Baseline Compilation (TOTAL)" : "DFG Compilation (TOTAL)");
    341309   
    342310#if !ENABLE(JIT)
     
    377345
    378346#if ENABLE(JIT)
    379     if (!prepareForExecution(*globalData, m_programCodeBlock, m_jitCodeForCall, jitType))
     347    if (!jitCompileIfAppropriate(*globalData, m_programCodeBlock, m_jitCodeForCall, jitType))
    380348        return 0;
    381349#endif
     
    453421        result = static_cast<FunctionCodeBlock*>(result->alternative());
    454422    ASSERT(result);
    455     ASSERT(JITCode::isBaselineCode(result->getJITType()));
     423    ASSERT(result->getJITType() == JITCode::BaselineJIT);
    456424    return result;
    457425}
     
    478446    return error;
    479447}
    480 
    481 #if ENABLE(JIT)
    482 void FunctionExecutable::jitCompileForCall(JSGlobalData& globalData)
    483 {
    484     bool result = jitCompileFunctionIfAppropriate(globalData, m_codeBlockForCall, m_jitCodeForCall, m_jitCodeForCallWithArityCheck, m_symbolTable, JITCode::bottomTierJIT());
    485     ASSERT_UNUSED(result, result);
    486 }
    487 
    488 void FunctionExecutable::jitCompileForConstruct(JSGlobalData& globalData)
    489 {
    490     bool result = jitCompileFunctionIfAppropriate(globalData, m_codeBlockForConstruct, m_jitCodeForConstruct, m_jitCodeForConstructWithArityCheck, m_symbolTable, JITCode::bottomTierJIT());
    491     ASSERT_UNUSED(result, result);
    492 }
    493 #endif
    494448
    495449FunctionCodeBlock* FunctionExecutable::codeBlockWithBytecodeFor(CodeSpecializationKind kind)
     
    537491JSObject* FunctionExecutable::compileForCallInternal(ExecState* exec, ScopeChainNode* scopeChainNode, JITCode::JITType jitType)
    538492{
    539     SamplingRegion samplingRegion(samplingDescription(jitType));
     493    SamplingRegion samplingRegion(jitType == JITCode::BaselineJIT ? "Baseline Compilation (TOTAL)" : "DFG Compilation (TOTAL)");
    540494   
    541495#if !ENABLE(JIT)
     
    559513
    560514#if ENABLE(JIT)
    561     if (!prepareFunctionForExecution(exec->globalData(), m_codeBlockForCall, m_jitCodeForCall, m_jitCodeForCallWithArityCheck, m_symbolTable, jitType, CodeForCall))
     515    if (!jitCompileFunctionIfAppropriate(exec->globalData(), m_codeBlockForCall, m_jitCodeForCall, m_jitCodeForCallWithArityCheck, m_symbolTable, jitType))
    562516        return 0;
    563517#endif
     
    579533JSObject* FunctionExecutable::compileForConstructInternal(ExecState* exec, ScopeChainNode* scopeChainNode, JITCode::JITType jitType)
    580534{
    581     SamplingRegion samplingRegion(samplingDescription(jitType));
     535    SamplingRegion samplingRegion(jitType == JITCode::BaselineJIT ? "Baseline Compilation (TOTAL)" : "DFG Compilation (TOTAL)");
    582536   
    583537#if !ENABLE(JIT)
     
    601555
    602556#if ENABLE(JIT)
    603     if (!prepareFunctionForExecution(exec->globalData(), m_codeBlockForConstruct, m_jitCodeForConstruct, m_jitCodeForConstructWithArityCheck, m_symbolTable, jitType, CodeForConstruct))
     557    if (!jitCompileFunctionIfAppropriate(exec->globalData(), m_codeBlockForConstruct, m_jitCodeForConstruct, m_jitCodeForConstructWithArityCheck, m_symbolTable, jitType))
    604558        return 0;
    605559#endif
Note: See TracChangeset for help on using the changeset viewer.