Changeset 53789 in webkit
- Timestamp:
- Jan 24, 2010 7:53:20 PM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r53757 r53789 1 2010-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 1 14 2010-01-22 Kevin Watters <kevinwatters@gmail.com> 2 15 -
trunk/JavaScriptCore/jit/JITStubs.cpp
r53479 r53789 2420 2420 } 2421 2421 2422 #if USE(JSVALUE32_64)2423 2424 2422 DEFINE_STUB_FUNCTION(int, op_eq) 2425 2423 { … … 2429 2427 JSValue src2 = stackFrame.args[1].jsValue(); 2430 2428 2429 #if USE(JSVALUE32_64) 2431 2430 start: 2432 2431 if (src2.isUndefined()) { … … 2509 2508 CHECK_FOR_EXCEPTION(); 2510 2509 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) 2512 2521 2513 2522 DEFINE_STUB_FUNCTION(int, op_eq_strings) … … 2523 2532 } 2524 2533 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 2542 2535 2543 2536 DEFINE_STUB_FUNCTION(EncodedJSValue, op_lshift)
Note: See TracChangeset
for help on using the changeset viewer.