Changeset 44796 in webkit for trunk/JavaScriptCore/jit
- Timestamp:
- Jun 17, 2009, 10:50:07 PM (16 years ago)
- Location:
- trunk/JavaScriptCore/jit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITOpcodes.cpp
r44748 r44796 623 623 stubCall.call(); 624 624 ASSERT(regT0 == returnValueRegister); 625 // Temporarily bring these back on x86 platforms while we fix a bug.626 625 #if PLATFORM(X86_64) 627 626 addPtr(Imm32(0x48), X86::esp); … … 633 632 pop(X86::ebp); 634 633 ret(); 635 #el if PLATFORM(X86)634 #else 636 635 addPtr(Imm32(0x1c), X86::esp); 637 636 pop(X86::ebx); … … 640 639 pop(X86::ebp); 641 640 ret(); 642 #elif !defined(NDEBUG)643 // cti_op_throw SHOULD always change it's return address,644 // this point in the code should never be reached.645 breakpoint();646 641 #endif 647 642 } -
trunk/JavaScriptCore/jit/JITStubs.cpp
r44748 r44796 105 105 #endif 106 106 "call " SYMBOL_STRING(cti_vm_throw) "\n" 107 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"108 SYMBOL_STRING(ctiOpThrowNotCaught) ":" "\n"109 107 "addl $0x1c, %esp" "\n" 110 108 "popl %ebx" "\n" … … 158 156 "movq %rsp, %rdi" "\n" 159 157 "call " SYMBOL_STRING(cti_vm_throw) "\n" 160 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"161 SYMBOL_STRING(ctiOpThrowNotCaught) ":" "\n"162 158 "addq $0x48, %rsp" "\n" 163 159 "popq %rbx" "\n" … … 286 282 mov ecx, esp; 287 283 call JITStubs::cti_vm_throw; 288 add esp, 0x1c;289 pop ebx;290 pop edi;291 pop esi;292 pop ebp;293 ret;294 }295 }296 297 __declspec(naked) void ctiOpThrowNotCaught()298 {299 __asm {300 284 add esp, 0x1c; 301 285 pop ebx; … … 2329 2313 if (!handler) { 2330 2314 *stackFrame.exception = exceptionValue; 2331 #if !(PLATFORM(x86) || PLATFORM(x86_64))2332 // Termporarily disable this on x86 platforms.2333 STUB_SET_RETURN_ADDRESS(reinterpret_cast<void*>(ctiOpThrowNotCaught));2334 #endif2335 2315 return JSValue::encode(jsNull()); 2336 2316 } -
trunk/JavaScriptCore/jit/JITStubs.h
r44705 r44796 183 183 184 184 extern "C" void ctiVMThrowTrampoline(); 185 extern "C" void ctiOpThrowNotCaught();186 185 extern "C" EncodedJSValue ctiTrampoline( 187 186 #if PLATFORM(X86_64)
Note:
See TracChangeset
for help on using the changeset viewer.