[webkit-changes] [WebKit/WebKit] 0f79dd: [JSC] Skip putting home objects for functions not ...

Yusuke Suzuki noreply at github.com
Thu Apr 25 10:34:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0f79dd2171fa5563fb84f870bd5359d4493aa6b4
      https://github.com/WebKit/WebKit/commit/0f79dd2171fa5563fb84f870bd5359d4493aa6b4
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-04-25 (Thu, 25 Apr 2024)

  Changed paths:
    M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
    M Source/JavaScriptCore/parser/Parser.cpp
    M Source/JavaScriptCore/parser/Parser.h

  Log Message:
  -----------
  [JSC] Skip putting home objects for functions not having "super"
https://bugs.webkit.org/show_bug.cgi?id=273217
rdar://127015222

Reviewed by Keith Miller.

We do not need to store [[HomeObject]] to the method when the method does not need "super" at all.
In this patch, we check function's metadata, and do not set [[HomeObject]] when it is not necessary.

* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::PropertyListNode::emitPutConstantProperty):
* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseClass):
* Source/JavaScriptCore/parser/Parser.h:
(JSC::Parser::adjustSuperBindingForBaseConstructor):

Canonical link: https://commits.webkit.org/277989@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