[webkit-changes] [WebKit/WebKit] 2d6f6e: [JSC] Avoid allocating heap Function for forEachDe...

Yusuke Suzuki noreply at github.com
Fri Sep 2 20:22:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2d6f6e37bab5748ad19af088c7d858ce5610fe46
      https://github.com/WebKit/WebKit/commit/2d6f6e37bab5748ad19af088c7d858ce5610fe46
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2022-09-02 (Fri, 02 Sep 2022)

  Changed paths:
    M Source/JavaScriptCore/runtime/NativeExecutable.cpp
    M Source/JavaScriptCore/runtime/VM.cpp
    M Source/JavaScriptCore/runtime/VM.h
    M Source/JavaScriptCore/runtime/VMInlines.h

  Log Message:
  -----------
  [JSC] Avoid allocating heap Function for forEachDebugger
https://bugs.webkit.org/show_bug.cgi?id=244741

Reviewed by Devin Rousso.

We should keep NativeExecutable creation cheap. This patch moves VM::forEachDebugger to
VMInlines, and avoid allocating heap data structure for Function.

* Source/JavaScriptCore/runtime/NativeExecutable.cpp:
* Source/JavaScriptCore/runtime/VM.cpp:
(JSC::VM::forEachDebugger): Deleted.
* Source/JavaScriptCore/runtime/VM.h:
* Source/JavaScriptCore/runtime/VMInlines.h:
(JSC::VM::forEachDebugger):

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




More information about the webkit-changes mailing list