Changeset 39039 in webkit for trunk/JavaScriptCore/jit/JIT.cpp


Ignore:
Timestamp:
Dec 5, 2008, 12:39:57 PM (16 years ago)
Author:
[email protected]
Message:

2008-12-05 Gavin Barraclough <[email protected]>

Reviewed by Geoffrey Garen.

Simplify JIT generated checks for timeout code, by moving more work into the C function.
https://bugs.webkit.org/show_bug.cgi?id=22688

  • interpreter/Interpreter.cpp: (JSC::Interpreter::cti_timeout_check):
  • interpreter/Interpreter.h:
  • jit/JIT.cpp: (JSC::JIT::emitSlowScriptCheck):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JIT.cpp

    r39038 r39039  
    272272    JmpSrc skipTimeout = __ jne();
    273273    emitCTICall(bytecodeIndex, Interpreter::cti_timeout_check);
    274 
    275     emitGetCTIParam(CTI_ARGS_globalData, X86::ecx);
    276     __ movl_mr(FIELD_OFFSET(JSGlobalData, interpreter), X86::ecx, X86::ecx);
    277     __ movl_mr(FIELD_OFFSET(Interpreter, m_ticksUntilNextTimeoutCheck), X86::ecx, X86::esi);
     274    __ movl_rr(X86::eax, X86::esi);
    278275    __ link(skipTimeout, __ label());
    279276
Note: See TracChangeset for help on using the changeset viewer.