Changeset 37160 in webkit for trunk/JavaScriptCore/VM/CTI.cpp
- Timestamp:
- Oct 1, 2008, 3:18:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CTI.cpp
r37138 r37160 1191 1191 } 1192 1192 case op_ret: { 1193 // Check for an activation - if there is one, jump to the hook below. 1194 m_jit.cmpl_i32m(0, RegisterFile::OptionalCalleeActivation * static_cast<int>(sizeof(Register)), X86::edi); 1193 // If there is an activation or an 'arguments' object, we tear it 1194 // off by jumping to the hook below. 1195 m_jit.movl_mr(RegisterFile::OptionalCalleeActivation * static_cast<int>(sizeof(Register)), X86::edi, X86::eax); 1196 m_jit.orl_mr(RegisterFile::OptionalCalleeArguments * static_cast<int>(sizeof(Register)), X86::edi, X86::eax); 1197 m_jit.cmpl_i32r(0, X86::eax); 1195 1198 X86Assembler::JmpSrc activation = m_jit.emitUnlinkedJne(); 1196 1199 X86Assembler::JmpDst activated = m_jit.label(); … … 1222 1225 m_jit.ret(); 1223 1226 1224 // Activation hook1227 // Activation and 'arguments' hook 1225 1228 m_jit.link(activation, m_jit.label()); 1226 emitCall(i, Machine::cti_op_ret_activation );1229 emitCall(i, Machine::cti_op_ret_activation_arguments); 1227 1230 m_jit.link(m_jit.emitUnlinkedJmp(), activated); 1228 1231
Note:
See TracChangeset
for help on using the changeset viewer.