Changeset 35810 in webkit for trunk/JavaScriptCore/VM/Machine.cpp


Ignore:
Timestamp:
Aug 17, 2008, 2:27:56 PM (17 years ago)
Author:
[email protected]
Message:

2008-08-17 Cameron Zwarich <[email protected]>

Reviewed by Maciej.

Bug 20419: Remove op_jless
<https://bugs.webkit.org/show_bug.cgi?id=20419>

Remove op_jless, which is rarely used now that we have op_loop_if_less.

  • VM/CodeBlock.cpp: (KJS::CodeBlock::dump):
  • VM/CodeGenerator.cpp: (KJS::CodeGenerator::emitJumpIfTrue):
  • VM/Machine.cpp: (KJS::Machine::privateExecute):
  • VM/Opcode.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Machine.cpp

    r35807 r35810  
    22152215        NEXT_OPCODE;
    22162216    }
    2217     BEGIN_OPCODE(op_jless) {
    2218         /* jless src1(r) src2(r) target(offset)
    2219 
    2220            Checks whether register src1 is less than register src2, as
    2221            with the ECMAScript '<' operator, and then jumps to offset
    2222            target from the current instruction, if and only if the
    2223            result of the comparison is true.
    2224         */
    2225         JSValue* src1 = r[(++vPC)->u.operand].jsValue(exec);
    2226         JSValue* src2 = r[(++vPC)->u.operand].jsValue(exec);
    2227         int target = (++vPC)->u.operand;
    2228 
    2229         bool result = jsLess(exec, src1, src2);
    2230         VM_CHECK_EXCEPTION();
    2231        
    2232         if (result) {
    2233             vPC += target;
    2234             NEXT_OPCODE;
    2235         }
    2236 
    2237         ++vPC;
    2238         NEXT_OPCODE;
    2239     }
    22402217    BEGIN_OPCODE(op_jnless) {
    22412218        /* jnless src1(r) src2(r) target(offset)
Note: See TracChangeset for help on using the changeset viewer.