[webkit-changes] [WebKit/WebKit] f941f5: [JSC] Remove stack height check for JSString::reso...

Yusuke Suzuki noreply at github.com
Mon Dec 16 16:21:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f941f5ebc01f92ae77d8d18d35af571c76e7390a
      https://github.com/WebKit/WebKit/commit/f941f5ebc01f92ae77d8d18d35af571c76e7390a
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSString.cpp
    M Source/JavaScriptCore/runtime/JSString.h
    M Source/JavaScriptCore/runtime/JSStringInlines.h

  Log Message:
  -----------
  [JSC] Remove stack height check for JSString::resolveToBuffer since we are using tail-calls
https://bugs.webkit.org/show_bug.cgi?id=284780
rdar://141567781

Reviewed by Yijia Huang.

We use tail-calls in JSRopeString::resolveToBuffer for the fast path,
thus we do not need to do stack height check here.

* Source/JavaScriptCore/runtime/JSString.cpp:
(JSC::JSRopeString::resolveRopeInternalNoSubstring const):
(JSC::JSRopeString::resolveRopeToAtomString const):
(JSC::JSRopeString::resolveRopeToExistingAtomString const):
(JSC::JSRopeString::resolveRopeWithFunction const):
* Source/JavaScriptCore/runtime/JSString.h:
* Source/JavaScriptCore/runtime/JSStringInlines.h:
(JSC::JSRopeString::resolveToBufferSlow):
(JSC::JSRopeString::resolveToBuffer):
(JSC::jsAtomString):

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



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


More information about the webkit-changes mailing list