Changeset 53789 in webkit


Ignore:
Timestamp:
Jan 24, 2010 7:53:20 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-24 Laszlo Gombos <Laszlo Gombos>

Reviewed by Maciej Stachowiak.

Refactor JITStubs.cpp so that DEFINE_STUB_FUNCTION is only used once for each function
https://bugs.webkit.org/show_bug.cgi?id=33866

Place the guard USE(JSVALUE32_64) inside the body of the DEFINE_STUB_FUNCTION
macro for those functions that are always present.

  • jit/JITStubs.cpp: (JSC::DEFINE_STUB_FUNCTION):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r53757 r53789  
     12010-01-24  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Refactor JITStubs.cpp so that DEFINE_STUB_FUNCTION is only used once for each function
     6        https://bugs.webkit.org/show_bug.cgi?id=33866
     7
     8        Place the guard USE(JSVALUE32_64) inside the body of the DEFINE_STUB_FUNCTION
     9        macro for those functions that are always present.
     10
     11        * jit/JITStubs.cpp:
     12        (JSC::DEFINE_STUB_FUNCTION):
     13
    1142010-01-22  Kevin Watters  <kevinwatters@gmail.com>
    215
  • trunk/JavaScriptCore/jit/JITStubs.cpp

    r53479 r53789  
    24202420}
    24212421
    2422 #if USE(JSVALUE32_64)
    2423 
    24242422DEFINE_STUB_FUNCTION(int, op_eq)
    24252423{
     
    24292427    JSValue src2 = stackFrame.args[1].jsValue();
    24302428
     2429#if USE(JSVALUE32_64)
    24312430    start:
    24322431    if (src2.isUndefined()) {
     
    25092508    CHECK_FOR_EXCEPTION();
    25102509    goto start;
    2511 }
     2510   
     2511#else // USE(JSVALUE32_64)
     2512    CallFrame* callFrame = stackFrame.callFrame;
     2513   
     2514    bool result = JSValue::equalSlowCaseInline(callFrame, src1, src2);
     2515    CHECK_FOR_EXCEPTION_AT_END();
     2516    return result;
     2517#endif // USE(JSVALUE32_64)
     2518}
     2519
     2520#if USE(JSVALUE32_64)
    25122521
    25132522DEFINE_STUB_FUNCTION(int, op_eq_strings)
     
    25232532}
    25242533
    2525 #else // USE(JSVALUE32_64)
    2526 
    2527 DEFINE_STUB_FUNCTION(int, op_eq)
    2528 {
    2529     STUB_INIT_STACK_FRAME(stackFrame);
    2530 
    2531     JSValue src1 = stackFrame.args[0].jsValue();
    2532     JSValue src2 = stackFrame.args[1].jsValue();
    2533 
    2534     CallFrame* callFrame = stackFrame.callFrame;
    2535 
    2536     bool result = JSValue::equalSlowCaseInline(callFrame, src1, src2);
    2537     CHECK_FOR_EXCEPTION_AT_END();
    2538     return result;
    2539 }
    2540 
    2541 #endif // USE(JSVALUE32_64)
     2534#endif
    25422535
    25432536DEFINE_STUB_FUNCTION(EncodedJSValue, op_lshift)
Note: See TracChangeset for help on using the changeset viewer.