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


Ignore:
Timestamp:
Dec 5, 2008, 4:52:05 PM (16 years ago)
Author:
[email protected]
Message:

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

Reviewed by Geoff Garen.

Remove redundant calls to JIT::emitSlowScriptCheck.
This is checked in the hot path, so is not needed on the slow path - and the code
was being planted before the start of the slow case, so was completely unreachable!

  • jit/JIT.cpp: (JSC::JIT::privateCompileSlowCases):
File:
1 edited

Legend:

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

    r39053 r39055  
    16061606        }
    16071607        case op_loop_if_less: {
    1608             emitSlowScriptCheck(i);
    1609 
    16101608            unsigned target = instruction[i + 3].u.operand;
    16111609            JSValue* src2imm = getConstantImmediateNumericArg(instruction[i + 2].u.operand);
     
    16401638        }
    16411639        case op_loop_if_lesseq: {
    1642             emitSlowScriptCheck(i);
    1643 
    16441640            unsigned target = instruction[i + 3].u.operand;
    16451641            JSValue* src2imm = getConstantImmediateNumericArg(instruction[i + 2].u.operand);
     
    17021698        }
    17031699        case op_loop_if_true: {
    1704             emitSlowScriptCheck(i);
    1705 
    17061700            __ link(iter->from, __ label());
    17071701            emitPutCTIArg(X86::eax, 0);
Note: See TracChangeset for help on using the changeset viewer.