Changeset 59637 in webkit for trunk/JavaScriptCore/jit/JITOpcodes.cpp
- Timestamp:
- May 17, 2010, 7:39:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITOpcodes.cpp
r59339 r59637 260 260 move(callFrameRegister, X86Registers::edi); 261 261 262 call(Address(X86Registers::esi, OBJECT_OFFSETOF(JSFunction, m_data))); 262 loadPtr(Address(X86Registers::esi, OBJECT_OFFSETOF(JSFunction, m_executable)), X86Registers::r9); 263 call(Address(X86Registers::r9, OBJECT_OFFSETOF(NativeExecutable, m_function))); 263 264 264 265 addPtr(Imm32(sizeof(ArgList)), stackPointerRegister); … … 338 339 move(callFrameRegister, X86Registers::edx); 339 340 340 call(Address(X86Registers::eax, OBJECT_OFFSETOF(JSFunction, m_data))); 341 loadPtr(Address(X86Registers::eax, OBJECT_OFFSETOF(JSFunction, m_executable)), X86Registers::ebx); 342 call(Address(X86Registers::ebx, OBJECT_OFFSETOF(NativeExecutable, m_function))); 341 343 342 344 // JSValue is a non-POD type … … 348 350 // Plant callframe 349 351 move(callFrameRegister, X86Registers::ecx); 350 call(Address(X86Registers::edx, OBJECT_OFFSETOF(JSFunction, m_data))); 352 loadPtr(Address(X86Registers::edx, OBJECT_OFFSETOF(JSFunction, m_executable)), X86Registers::ebx); 353 call(Address(X86Registers::ebx, OBJECT_OFFSETOF(NativeExecutable, m_function))); 351 354 #endif 352 355 … … 396 399 storePtr(regT0, Address(stackPointerRegister)); 397 400 398 call(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_data))); 401 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_executable)), regT3); 402 call(Address(regT3, OBJECT_OFFSETOF(NativeExecutable, m_function))); 399 403 400 404 loadPtr(Address(regT0), regT0); … … 414 418 move(stackPointerRegister, ARMRegisters::r3); 415 419 416 call(Address(regT1, OBJECT_OFFSETOF(JSFunction, m_data))); 420 loadPtr(Address(regT1, OBJECT_OFFSETOF(JSFunction, m_executable)), regT3); 421 call(Address(regT3, OBJECT_OFFSETOF(NativeExecutable, m_function))); 417 422 418 423 addPtr(Imm32(sizeof(ArgList)), stackPointerRegister); … … 461 466 462 467 // Call 463 call(Address(MIPSRegisters::a2, OBJECT_OFFSETOF(JSFunction, m_data))); 468 loadPtr(Address(MIPSRegisters::a2, OBJECT_OFFSETOF(JSFunction, m_executable)), regT2); 469 call(Address(regT2, OBJECT_OFFSETOF(NativeExecutable, m_function))); 464 470 465 471 // Get returned value from 0($v0) which is the same as 20($sp) … … 536 542 trampolines->ctiVirtualCall = trampolineAt(finalCode, virtualCallBegin); 537 543 trampolines->ctiVirtualConstruct = trampolineAt(finalCode, virtualConstructBegin); 538 trampolines->ctiNativeCall Thunk = adoptRef(new NativeExecutable(JITCode(JITCode::HostFunction(trampolineAt(finalCode, nativeCallThunk)))));544 trampolines->ctiNativeCall = trampolineAt(finalCode, nativeCallThunk); 539 545 #if ENABLE(JIT_OPTIMIZE_MOD) 540 546 trampolines->ctiSoftModulo = trampolineAt(finalCode, softModBegin);
Note:
See TracChangeset
for help on using the changeset viewer.