Changeset 38290 in webkit for trunk/JavaScriptCore/VM/CTI.cpp
- Timestamp:
- Nov 10, 2008, 9:45:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CTI.cpp
r38286 r38290 183 183 { 184 184 // TODO: we want to reuse values that are already in registers if we can - add a register allocator! 185 if (m_codeBlock->isConstant (src)) {185 if (m_codeBlock->isConstantRegisterIndex(src)) { 186 186 JSValue* js = getConstant(src); 187 187 m_jit.movl_i32r(asInteger(js), dst); … … 193 193 ALWAYS_INLINE void CTI::emitGetPutArg(unsigned src, unsigned offset, X86Assembler::RegisterID scratch) 194 194 { 195 if (m_codeBlock->isConstant (src)) {195 if (m_codeBlock->isConstantRegisterIndex(src)) { 196 196 JSValue* js = getConstant(src); 197 197 m_jit.movl_i32m(asInteger(js), offset + sizeof(void*), X86::esp); … … 215 215 ALWAYS_INLINE JSValue* CTI::getConstantImmediateNumericArg(unsigned src) 216 216 { 217 if (m_codeBlock->isConstant (src)) {217 if (m_codeBlock->isConstantRegisterIndex(src)) { 218 218 JSValue* js = getConstant(src); 219 219 return JSImmediate::isNumber(js) ? js : noValue(); … … 274 274 { 275 275 char which1 = '*'; 276 if (m_codeBlock->isConstant (src1)) {276 if (m_codeBlock->isConstantRegisterIndex(src1)) { 277 277 JSValue* js = getConstant(src1); 278 278 which1 = … … 288 288 } 289 289 char which2 = '*'; 290 if (m_codeBlock->isConstant (src2)) {290 if (m_codeBlock->isConstantRegisterIndex(src2)) { 291 291 JSValue* js = getConstant(src2); 292 292 which2 = … … 1005 1005 case op_mov: { 1006 1006 unsigned src = instruction[i + 2].u.operand; 1007 if (m_codeBlock->isConstant (src))1007 if (m_codeBlock->isConstantRegisterIndex(src)) 1008 1008 m_jit.movl_i32r(asInteger(getConstant(src)), X86::eax); 1009 1009 else
Note:
See TracChangeset
for help on using the changeset viewer.