Changeset 37755 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 20, 2008, 7:45:57 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-20 Cameron Zwarich <[email protected]>

Reviewed by Maciej Stachowiak.

Remove an untaken branch in CodeGenerator::emitJumpIfFalse(). This
function is never called with a backwards target LabelID, and there is
even an assertion to this effect at the top of the function body.

  • VM/CodeGenerator.cpp: (JSC::CodeGenerator::emitJumpIfFalse):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r37751 r37755  
     12008-10-20  Cameron Zwarich  <[email protected]>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Remove an untaken branch in CodeGenerator::emitJumpIfFalse(). This
     6        function is never called with a backwards target LabelID, and there is
     7        even an assertion to this effect at the top of the function body.
     8
     9        * VM/CodeGenerator.cpp:
     10        (JSC::CodeGenerator::emitJumpIfFalse):
     11
    1122008-10-20  Cameron Zwarich  <[email protected]>
    213
  • trunk/JavaScriptCore/VM/CodeGenerator.cpp

    r37730 r37755  
    582582        if (cond->index() == dstIndex && cond->isTemporary() && !cond->refCount()) {
    583583            rewindUnaryOp();
    584             emitOpcode(target->isForwardLabel() ? op_jtrue : op_loop_if_true);
     584            emitOpcode(op_jtrue);
    585585            instructions().append(srcIndex);
    586586            instructions().append(target->offsetFrom(instructions().size()));
Note: See TracChangeset for help on using the changeset viewer.