Changeset 44796 in webkit for trunk/JavaScriptCore/jit


Ignore:
Timestamp:
Jun 17, 2009, 10:50:07 PM (16 years ago)
Author:
[email protected]
Message:

2009-06-17 Gavin Barraclough <[email protected]>

Rubber Stamped by Mark Rowe.

Fully revert r44492 & r44748 while we fix a bug they cause on internal builds <rdar://problem/6955963>.

  • jit/JITOpcodes.cpp: (JSC::JIT::emit_op_throw):
  • jit/JITStubs.cpp: (JSC::): (JSC::JITStubs::DEFINE_STUB_FUNCTION):
  • jit/JITStubs.h:
Location:
trunk/JavaScriptCore/jit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITOpcodes.cpp

    r44748 r44796  
    623623    stubCall.call();
    624624    ASSERT(regT0 == returnValueRegister);
    625     // Temporarily bring these back on x86 platforms while we fix a bug.
    626625#if PLATFORM(X86_64)
    627626    addPtr(Imm32(0x48), X86::esp);
     
    633632    pop(X86::ebp);
    634633    ret();
    635 #elif PLATFORM(X86)
     634#else
    636635    addPtr(Imm32(0x1c), X86::esp);
    637636    pop(X86::ebx);
     
    640639    pop(X86::ebp);
    641640    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();
    646641#endif
    647642}
  • trunk/JavaScriptCore/jit/JITStubs.cpp

    r44748 r44796  
    105105#endif
    106106    "call " SYMBOL_STRING(cti_vm_throw) "\n"
    107 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"
    108 SYMBOL_STRING(ctiOpThrowNotCaught) ":" "\n"
    109107    "addl $0x1c, %esp" "\n"
    110108    "popl %ebx" "\n"
     
    158156    "movq %rsp, %rdi" "\n"
    159157    "call " SYMBOL_STRING(cti_vm_throw) "\n"
    160 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"
    161 SYMBOL_STRING(ctiOpThrowNotCaught) ":" "\n"
    162158    "addq $0x48, %rsp" "\n"
    163159    "popq %rbx" "\n"
     
    286282            mov ecx, esp;
    287283            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 {
    300284            add esp, 0x1c;
    301285            pop ebx;
     
    23292313    if (!handler) {
    23302314        *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 #endif
    23352315        return JSValue::encode(jsNull());
    23362316    }
  • trunk/JavaScriptCore/jit/JITStubs.h

    r44705 r44796  
    183183
    184184    extern "C" void ctiVMThrowTrampoline();
    185     extern "C" void ctiOpThrowNotCaught();
    186185    extern "C" EncodedJSValue ctiTrampoline(
    187186#if PLATFORM(X86_64)
Note: See TracChangeset for help on using the changeset viewer.