Skip to content

Commit

Permalink
Unreviewed, suppress warning
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=256030
rdar://108593611

* Source/JavaScriptCore/jit/JITOperations.cpp:
(JSC::JSC_DEFINE_JIT_OPERATION):

Canonical link: https://commits.webkit.org/263448@main
  • Loading branch information
Constellation committed Apr 27, 2023
1 parent 7327aab commit a8afcd9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/JavaScriptCore/jit/JITOperations.cpp
Expand Up @@ -2427,8 +2427,10 @@ JSC_DEFINE_JIT_OPERATION(operationGetByValMegamorphic, EncodedJSValue, (JSGlobal
if (UNLIKELY(TypeInfo::overridesGetOwnPropertySlot(object->inlineTypeFlags()) && object->type() != ArrayType && object->type() != JSFunctionType && object != globalObject->arrayPrototype())) {
if (stubInfo && stubInfo->considerRepatchingCacheMegamorphic(vm))
repatchGetBySlowPathCall(callFrame->codeBlock(), *stubInfo, GetByKind::ByVal);
if (object->getNonIndexPropertySlot(globalObject, uid, slot))
return JSValue::encode(slot.getValue(globalObject, uid));
bool result = object->getNonIndexPropertySlot(globalObject, uid, slot);
RETURN_IF_EXCEPTION(scope, { });
if (result)
RELEASE_AND_RETURN(scope, JSValue::encode(slot.getValue(globalObject, uid)));
return JSValue::encode(jsUndefined());
}

Expand All @@ -2450,7 +2452,7 @@ JSC_DEFINE_JIT_OPERATION(operationGetByValMegamorphic, EncodedJSValue, (JSGlobal
if (stubInfo && stubInfo->considerRepatchingCacheMegamorphic(vm))
repatchGetBySlowPathCall(callFrame->codeBlock(), *stubInfo, GetByKind::ByVal);
}
return JSValue::encode(slot.getValue(globalObject, uid));
RELEASE_AND_RETURN(scope, JSValue::encode(slot.getValue(globalObject, uid)));
}

cacheable &= structure->propertyAccessesAreCacheableForAbsence();
Expand Down

0 comments on commit a8afcd9

Please sign in to comment.