Ignore:
Timestamp:
May 23, 2009, 4:08:58 AM (16 years ago)
Author:
[email protected]
Message:

Remove interpreter specific logic from the JIT builds

Reviewed by Maciej Stachowiak.

This saves ~100k in JSC release builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r44076 r44088  
    9292}
    9393
     94#if USE(INTERPRETER)
    9495NEVER_INLINE bool Interpreter::resolve(CallFrame* callFrame, Instruction* vPC, JSValue& exceptionValue)
    9596{
     
    281282}
    282283
     284#endif // USE(INTERPRETER)
     285
    283286ALWAYS_INLINE CallFrame* Interpreter::slideRegisterWindowForCall(CodeBlock* newCodeBlock, RegisterFile* registerFile, CallFrame* callFrame, size_t registerOffset, int argc)
    284287{
     
    318321}
    319322
     323#if USE(INTERPRETER)
    320324static NEVER_INLINE bool isInvalidParamForIn(CallFrame* callFrame, CodeBlock* codeBlock, const Instruction* vPC, JSValue value, JSValue& exceptionData)
    321325{
     
    333337    return true;
    334338}
     339#endif
    335340
    336341NEVER_INLINE JSValue Interpreter::callEval(CallFrame* callFrame, RegisterFile* registerFile, Register* argv, int argc, int registerOffset, JSValue& exceptionValue)
     
    907912    }
    908913}
    909 
     914   
     915#if USE(INTERPRETER)
    910916NEVER_INLINE ScopeChainNode* Interpreter::createExceptionScope(CallFrame* callFrame, const Instruction* vPC)
    911917{
     
    10871093}
    10881094
     1095#endif // USE(INTERPRETER)
     1096
    10891097JSValue Interpreter::privateExecute(ExecutionFlag flag, RegisterFile* registerFile, CallFrame* callFrame, JSValue* exception)
    10901098{
     
    11091117    ASSERT_NOT_REACHED();
    11101118#endif
     1119#if !USE(INTERPRETER)
     1120    UNUSED_PARAM(registerFile);
     1121    UNUSED_PARAM(callFrame);
     1122    UNUSED_PARAM(exception);
     1123    return JSValue();
     1124#else
    11111125
    11121126    JSGlobalData* globalData = &callFrame->globalData();
     
    38563870    } // iterator loop ends
    38573871#endif
     3872#endif // USE(INTERPRETER)
    38583873    #undef NEXT_INSTRUCTION
    38593874    #undef DEFINE_OPCODE
Note: See TracChangeset for help on using the changeset viewer.