Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JSC] Inline op_to_this for global object case #15134

Commits on Jun 21, 2023

  1. [JSC] Inline op_to_this for global object case

    https://bugs.webkit.org/show_bug.cgi?id=258343
    rdar://problem/111089057
    
    Reviewed by Alexey Shvayka.
    
    This patch inlines non-object-allocating simple ToThis operation in DFG and FTL.
    And we drop OverridesToThis bit, which is no longer necessary.
    
    * Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:
    (JSC::DFG::isToThisAnIdentity):
    * Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
    * Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
    (JSC::FTL::DFG::LowerDFGToB3::compileToThis):
    * Source/JavaScriptCore/runtime/JSBigInt.h:
    * Source/JavaScriptCore/runtime/JSCast.h:
    * Source/JavaScriptCore/runtime/JSScope.h:
    * Source/JavaScriptCore/runtime/JSString.h:
    * Source/JavaScriptCore/runtime/JSType.h:
    * Source/JavaScriptCore/runtime/JSTypeInfo.h:
    (JSC::TypeInfo::perCellBit):
    (JSC::TypeInfo::overridesToThis const): Deleted.
    * Source/JavaScriptCore/runtime/Symbol.h:
    
    Canonical link: https://commits.webkit.org/265373@main
    Constellation committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5b9fce6 View commit details
    Browse the repository at this point in the history