Changeset 34781 in webkit for trunk/JavaScriptCore/VM/CodeGenerator.cpp
- Timestamp:
- Jun 24, 2008, 4:03:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r34777 r34781 421 421 PassRefPtr<LabelID> CodeGenerator::emitJump(LabelID* target) 422 422 { 423 ASSERT(target->isForwardLabel());424 423 emitOpcode(op_jmp); 425 424 instructions().append(target->offsetFrom(instructions().size())); … … 438 437 if (cond->index() == dstIndex) { 439 438 rewindBinaryOp(); 440 emitOpcode( target->isForwardLabel() ? op_jless : op_loop_if_less);439 emitOpcode(op_jless); 441 440 instructions().append(src1Index); 442 441 instructions().append(src2Index); … … 451 450 PassRefPtr<LabelID> CodeGenerator::emitJumpIfTrue(RegisterID* cond, LabelID* target) 452 451 { 453 emitOpcode( target->isForwardLabel() ? op_jtrue : op_loop_if_true);452 emitOpcode(op_jtrue); 454 453 instructions().append(cond->index()); 455 454 instructions().append(target->offsetFrom(instructions().size())); … … 459 458 PassRefPtr<LabelID> CodeGenerator::emitJumpIfFalse(RegisterID* cond, LabelID* target) 460 459 { 461 ASSERT(target->isForwardLabel());462 460 emitOpcode(op_jfalse); 463 461 instructions().append(cond->index()); … … 1034 1032 { 1035 1033 ASSERT(scopeDepth() - targetScopeDepth >= 0); 1036 ASSERT(target->isForwardLabel());1037 1034 1038 1035 size_t scopeDelta = scopeDepth() - targetScopeDepth;
Note:
See TracChangeset
for help on using the changeset viewer.