Changeset 282387 in webkit
- Timestamp:
- Sep 14, 2021, 6:49:12 AM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
dfg/DFGOperations.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r282385 r282387 1 2021-09-14 Xan Lopez <xan@igalia.com> 2 3 [JSC] Remove unnecessary exception checks in DFGOperations 4 https://bugs.webkit.org/show_bug.cgi?id=230247 5 6 Reviewed by Caio Araujo Neponoceno de Lima. 7 8 JSValue::decode cannot throw an exception, remove a couple of 9 unnecessary RETURN_IF_EXCEPTION() calls. 10 11 * dfg/DFGOperations.cpp: 12 (JSC::DFG::JSC_DEFINE_JIT_OPERATION): 13 1 14 2021-09-14 Xan López <xan@igalia.com> 2 15 -
trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
r282385 r282387 2531 2531 2532 2532 JSValue base = JSValue::decode(baseValue); 2533 RETURN_IF_EXCEPTION(scope, { });2534 2533 if (modeNumber == JSPropertyNameEnumerator::IndexedMode && base.isObject()) 2535 2534 RELEASE_AND_RETURN(scope, JSValue::encode(jsBoolean(jsCast<JSObject*>(base)->hasProperty(globalObject, index)))); … … 2559 2558 2560 2559 JSValue base = JSValue::decode(baseValue); 2561 RETURN_IF_EXCEPTION(scope, { });2562 2560 if (modeNumber == JSPropertyNameEnumerator::IndexedMode && base.isObject()) 2563 2561 RELEASE_AND_RETURN(scope, JSValue::encode(jsBoolean(jsCast<JSObject*>(base)->hasOwnProperty(globalObject, index))));
Note:
See TracChangeset
for help on using the changeset viewer.