Changeset 36695 in webkit for trunk/JavaScriptCore/VM/CTI.cpp
- Timestamp:
- Sep 19, 2008, 8:00:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CTI.cpp
r36605 r36695 178 178 { 179 179 m_jit.movl_rm(from, dst * sizeof(Register), X86::edi); 180 // FIXME: #ifndef NDEBUG, Write the correct m_type to the register. 181 } 182 183 ALWAYS_INLINE void CTI::emitInitialiseRegister(unsigned dst) 184 { 185 m_jit.movl_i32m(reinterpret_cast<unsigned>(jsUndefined()), dst * sizeof(Register), X86::edi); 180 186 // FIXME: #ifndef NDEBUG, Write the correct m_type to the register. 181 187 } … … 526 532 void CTI::privateCompileMainPass() 527 533 { 534 if (m_codeBlock->codeType == FunctionCode) { 535 for (int i = -m_codeBlock->numVars; i < 0; i++) 536 emitInitialiseRegister(i); 537 } 538 for (size_t i = 0; i < m_codeBlock->constantRegisters.size(); ++i) 539 emitInitialiseRegister(i); 540 528 541 Instruction* instruction = m_codeBlock->instructions.begin(); 529 542 unsigned instructionCount = m_codeBlock->instructions.size(); … … 1522 1535 break; 1523 1536 } 1537 case op_initialise_locals: { 1538 i++; 1539 break; 1540 } 1524 1541 case op_get_array_length: 1525 1542 case op_get_by_id_chain:
Note:
See TracChangeset
for help on using the changeset viewer.