Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 25b69836107aead0ec3e26a8f1b529704fd6c0f3
      
https://github.com/WebKit/WebKit/commit/25b69836107aead0ec3e26a8f1b529704fd6c0f3
  Author: Yusuke Suzuki <[email protected]>
  Date:   2025-12-27 (Sat, 27 Dec 2025)

  Changed paths:
    M LayoutTests/js/dom/string-anchor-expected.txt
    M Source/JavaScriptCore/builtins/BuiltinNames.h
    M Source/JavaScriptCore/builtins/StringPrototype.js
    M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
    M Source/JavaScriptCore/runtime/Intrinsic.h
    M Source/JavaScriptCore/runtime/StringPrototype.cpp

  Log Message:
  -----------
  [JSC] Move HTML-annotation String methods to C++
https://bugs.webkit.org/show_bug.cgi?id=304721
rdar://167227535

Reviewed by Sosuke Suzuki.

This patch moves all of String.prototype.blink etc. HTML annotation
functions from JS to C++. Having it in JS is costly due to large DATA,
bytecode cost, etc. Plus it is simply slow, hard to assist debugging with
C++-related toolchains. We should just put them in C++, which is better
in terms of performance, memory, and debuggability.

* LayoutTests/js/dom/string-anchor-expected.txt:
* Source/JavaScriptCore/builtins/BuiltinNames.h:
* Source/JavaScriptCore/builtins/StringPrototype.js:
(split):
(linkTimeConstant.createHTML): Deleted.
(): Deleted.
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIntrinsicCall):
* Source/JavaScriptCore/runtime/Intrinsic.h:
* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::StringPrototype::finishCreation):
(JSC::appendEscapeAttributeValue):
(JSC::createHTML):
(JSC::JSC_DEFINE_HOST_FUNCTION):

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



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

Reply via email to