You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2b7b986
Browse filesBrowse the repository at this point in the historyBrowse files
[JSC] Allocate poly proto objects in create_this fast paths
https://bugs.webkit.org/show_bug.cgi?id=328035
rdar://190392057
Reviewed by Keith Miller.
Poly proto means "this structure may be shared by multiple closures so
that prototype object is not determined as a singleton". This means that
each Function's profile can store this prototype for this site anyway.
So we can implement poly-proto object allocation in the fast path
easily.
Test: JSTests/stress/poly-proto-create-this-fast-path.js
* JSTests/stress/poly-proto-create-this-fast-path.js: Added.
(shouldBe):
(makeClass.Base.prototype.method):
(makeClass.Base):
(makeClass.Derived):
(makeClass.Plain):
(makeClass.Plain.prototype):
(makeClass):
(construct):
(check):
* Source/JavaScriptCore/bytecode/ObjectAllocationProfileInlines.h:
(JSC::ObjectAllocationProfileBase<Derived>::initializeProfile):
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileCreateThis):
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCreateThis):
* Source/JavaScriptCore/jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_create_this):
* Source/JavaScriptCore/lol/LOLJIT.cpp:
(JSC::LOL::LOLJIT::emit_op_create_this):
* Source/JavaScriptCore/runtime/JSGlobalProxy.cpp:
(JSC::JSGlobalProxy::setTarget):
Canonical link: https://commits.webkit.org/324153@main
0 commit comments