Ignore:
Timestamp:
Dec 14, 2011, 12:51:14 PM (13 years ago)
Author:
[email protected]
Message:

DFG relies on returning a struct in registers
https://bugs.webkit.org/show_bug.cgi?id=74527

Reviewed by Geoff Garen.

This will not work on all platforms. Returning a uint64_t will more reliably achieve
what we want, on 32-bit platforms (on 64-bit, stick with the struct return).

  • dfg/DFGOperations.cpp:
  • dfg/DFGOperations.h:

(JSC::DFG::DFGHandler::dfgHandlerEncoded):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp

    r102545 r102811  
    796796}
    797797
    798 DFGHandler DFG_OPERATION lookupExceptionHandler(ExecState* exec, ReturnAddressPtr faultLocation)
     798DFGHandlerEncoded DFG_OPERATION lookupExceptionHandler(ExecState* exec, ReturnAddressPtr faultLocation)
    799799{
    800800    JSValue exceptionValue = exec->exception();
     
    806806    void* catchRoutine = handler ? handler->nativeCode.executableAddress() : (void*)ctiOpThrowNotCaught;
    807807    ASSERT(catchRoutine);
    808     return DFGHandler(exec, catchRoutine);
     808    return dfgHandlerEncoded(exec, catchRoutine);
    809809}
    810810
Note: See TracChangeset for help on using the changeset viewer.