Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e14f98504927428e285a1e1266c03e395672e680
      
https://github.com/WebKit/WebKit/commit/e14f98504927428e285a1e1266c03e395672e680
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-04-27 (Mon, 27 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/builtins/BuiltinNames.h
    M Source/JavaScriptCore/builtins/FunctionPrototype.js
    M Source/JavaScriptCore/bytecode/LinkTimeConstant.h
    M Source/JavaScriptCore/runtime/FunctionPrototype.cpp
    M Source/JavaScriptCore/runtime/JSBoundFunction.cpp
    M Source/JavaScriptCore/runtime/JSBoundFunction.h
    M Source/JavaScriptCore/runtime/JSGlobalObject.cpp

  Log Message:
  -----------
  [JSC] Move symbolHasInstance to C++
https://bugs.webkit.org/show_bug.cgi?id=313401
rdar://175659837

Reviewed by Yijia Huang.

This patch moves symbolHasInstance implementation to C++ as this
function is no longer called from the normal path as instanceof
is having special optimized path skipping this call. So it is used only
when we explicitly call this function, which is extremely rare.

* Source/JavaScriptCore/builtins/BuiltinNames.h:
* Source/JavaScriptCore/builtins/FunctionPrototype.js:
(apply):
(overriddenName.string_appeared_here.symbolHasInstance): Deleted.
* Source/JavaScriptCore/bytecode/LinkTimeConstant.h:
* Source/JavaScriptCore/runtime/FunctionPrototype.cpp:
(JSC::FunctionPrototype::addFunctionProperties):
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/JSBoundFunction.cpp:
* Source/JavaScriptCore/runtime/JSBoundFunction.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):

Canonical link: https://commits.webkit.org/312111@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to