Changeset 34883 in webkit for trunk/JavaScriptCore/VM/CodeGenerator.cpp
- Timestamp:
- Jun 29, 2008, 11:17:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r34851 r34883 430 430 } 431 431 432 void CodeGenerator::rewindBinaryOp()432 void ALWAYS_INLINE CodeGenerator::rewindBinaryOp() 433 433 { 434 434 ASSERT(instructions().size() >= 4); … … 471 471 { 472 472 ASSERT(target->isForwardLabel()); 473 474 if (m_lastOpcodeID == op_less) { 475 int dstIndex; 476 int src1Index; 477 int src2Index; 478 479 retrieveLastBinaryOp(dstIndex, src1Index, src2Index); 480 481 if (cond->index() == dstIndex && !cond->refCount()) { 482 rewindBinaryOp(); 483 emitOpcode(op_jnless); 484 instructions().append(src1Index); 485 instructions().append(src2Index); 486 instructions().append(target->offsetFrom(instructions().size())); 487 return target; 488 } 489 } 490 473 491 emitOpcode(op_jfalse); 474 492 instructions().append(cond->index());
Note:
See TracChangeset
for help on using the changeset viewer.