Ignore:
Timestamp:
Jul 7, 2008, 9:01:06 AM (17 years ago)
Author:
[email protected]
Message:

2008-07-07 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Third step in broad cleanup effort.

[ File list elided ]

File:
1 edited

Legend:

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

    r34903 r35037  
    209209   
    210210    // Shift register indexes in generated code to elide registers allocated by intermediate stack frames.
    211     m_globalVarStorageOffset =  -1 - RegisterFile::CallFrameHeaderSize - registerFile->size();
     211    m_globalVarStorageOffset = -1 - RegisterFile::CallFrameHeaderSize - registerFile->size();
    212212
    213213    // Add previously defined symbols to bookkeeping.
     
    386386}
    387387
    388 
    389388RegisterID* CodeGenerator::highestUsedRegister()
    390389{
     
    449448        int src1Index;
    450449        int src2Index;
    451        
     450
    452451        retrieveLastBinaryOp(dstIndex, src1Index, src2Index);
    453        
     452
    454453        if (cond->index() == dstIndex && cond->isTemporary() && !cond->refCount()) {
    455454            rewindBinaryOp();
     
    461460        }
    462461    }
    463    
     462
    464463    emitOpcode(target->isForwardLabel() ? op_jtrue : op_loop_if_true);
    465464    instructions().append(cond->index());
     
    471470{
    472471    ASSERT(target->isForwardLabel());
    473    
     472
    474473    if (m_lastOpcodeID == op_less) {
    475474        int dstIndex;
    476475        int src1Index;
    477476        int src2Index;
    478        
     477
    479478        retrieveLastBinaryOp(dstIndex, src1Index, src2Index);
    480        
     479
    481480        if (cond->index() == dstIndex && cond->isTemporary() && !cond->refCount()) {
    482481            rewindBinaryOp();
     
    488487        }
    489488    }
    490    
     489
    491490    emitOpcode(op_jfalse);
    492491    instructions().append(cond->index());
Note: See TracChangeset for help on using the changeset viewer.