Ignore:
Timestamp:
Jan 6, 2014, 11:20:41 AM (12 years ago)
Author:
[email protected]
Message:

LLInt shouldn't check for ENABLE(JIT).

Rubber stamped by Mark Hahnenberg.

  • llint/LLIntCommon.h:
  • llint/LLIntOfflineAsmConfig.h:
  • llint/LLIntSlowPaths.cpp:

(JSC::LLInt::entryOSR):
(JSC::LLInt::LLINT_SLOW_PATH_DECL):

  • llint/LowLevelInterpreter.asm:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp

    r161220 r161356  
    269269}
    270270
     271enum EntryKind { Prologue, ArityCheck };
     272
    271273#if ENABLE(JIT)
    272274inline bool shouldJIT(ExecState* exec)
     
    322324}
    323325
    324 enum EntryKind { Prologue, ArityCheck };
    325326static SlowPathReturnType entryOSR(ExecState* exec, Instruction*, CodeBlock* codeBlock, const char *name, EntryKind kind)
    326327{
     
    343344    LLINT_RETURN_TWO(codeBlock->jitCodeWithArityCheck().executableAddress(), exec);
    344345}
     346#else // ENABLE(JIT)
     347static SlowPathReturnType entryOSR(ExecState* exec, Instruction*, CodeBlock* codeBlock, const char*, EntryKind)
     348{
     349    codeBlock->dontJITAnytimeSoon();
     350    LLINT_RETURN_TWO(0, exec);
     351}
     352#endif // ENABLE(JIT)
    345353
    346354LLINT_SLOW_PATH_DECL(entry_osr)
     
    373381    CodeBlock* codeBlock = exec->codeBlock();
    374382
     383#if ENABLE(JIT)
    375384    if (Options::verboseOSR()) {
    376385        dataLog(
     
    399408   
    400409    LLINT_RETURN_TWO(jumpTarget, exec);
     410#else // ENABLE(JIT)
     411    codeBlock->dontJITAnytimeSoon();
     412    LLINT_RETURN_TWO(0, exec);
     413#endif // ENABLE(JIT)
    401414}
    402415
     
    405418    CodeBlock* codeBlock = exec->codeBlock();
    406419
     420#if ENABLE(JIT)
    407421    if (Options::verboseOSR()) {
    408422        dataLog(
     
    416430        codeBlock->dontJITAnytimeSoon();
    417431    LLINT_END_IMPL();
    418 }
     432#else // ENABLE(JIT)
     433    codeBlock->dontJITAnytimeSoon();
     434    LLINT_END_IMPL();
    419435#endif // ENABLE(JIT)
     436}
    420437
    421438LLINT_SLOW_PATH_DECL(stack_check)
Note: See TracChangeset for help on using the changeset viewer.