⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 282387 in webkit


Ignore:
Timestamp:
Sep 14, 2021, 6:49:12 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[JSC] Remove unnecessary exception checks in DFGOperations
​https://bugs.webkit.org/show_bug.cgi?id=230247

Patch by Xan Lopez <Xan Lopez> on 2021-09-14
Reviewed by Caio Araujo Neponoceno de Lima.

JSValue::decode cannot throw an exception, remove a couple of
unnecessary RETURN_IF_EXCEPTION() calls.

  • dfg/DFGOperations.cpp:

(JSC::DFG::JSC_DEFINE_JIT_OPERATION):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r282385 r282387  
     12021-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
    1142021-09-14  Xan López  <xan@igalia.com>
    215
  • trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp

    r282385 r282387  
    25312531
    25322532    JSValue base = JSValue::decode(baseValue);
    2533     RETURN_IF_EXCEPTION(scope, { });
    25342533    if (modeNumber == JSPropertyNameEnumerator::IndexedMode && base.isObject())
    25352534        RELEASE_AND_RETURN(scope, JSValue::encode(jsBoolean(jsCast<JSObject*>(base)->hasProperty(globalObject, index))));
    … …  
    25592558
    25602559    JSValue base = JSValue::decode(baseValue);
    2561     RETURN_IF_EXCEPTION(scope, { });
    25622560    if (modeNumber == JSPropertyNameEnumerator::IndexedMode && base.isObject())
    25632561        RELEASE_AND_RETURN(scope, JSValue::encode(jsBoolean(jsCast<JSObject*>(base)->hasOwnProperty(globalObject, index))));
Note: See TracChangeset for help on using the changeset viewer.