-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Handler IC Getter / Setter / Proxy accessors should not use m_g…
…lobalObject https://bugs.webkit.org/show_bug.cgi?id=274485 rdar://128494111 Reviewed by Mark Lam. Since Handler IC can be shared across JSGlobalObjects, the generated code should not rely on that. This patch fixes so that all access are done through JSGlobalObject offered at runtime. We made all necessary fields of JSGlobalObject from JIT. * Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp: (JSC::InlineCacheCompiler::generateWithGuard): (JSC::InlineCacheCompiler::generateImpl): (JSC::InlineCacheCompiler::emitProxyObjectAccess): * Source/JavaScriptCore/runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::init): (JSC::JSGlobalObject::visitChildrenImpl): * Source/JavaScriptCore/runtime/JSGlobalObject.h: (JSC::JSGlobalObject::symbolPrototype const): (JSC::JSGlobalObject::dateStructure const): (JSC::JSGlobalObject::symbolObjectStructure const): (JSC::JSGlobalObject::offsetOfPerformProxyObjectHasFunction): (JSC::JSGlobalObject::offsetOfPerformProxyObjectGetFunction): (JSC::JSGlobalObject::offsetOfPerformProxyObjectGetByValFunction): (JSC::JSGlobalObject::offsetOfPerformProxyObjectSetStrictFunction): (JSC::JSGlobalObject::offsetOfPerformProxyObjectSetSloppyFunction): (JSC::JSGlobalObject::offsetOfNullSetterStrictFunction): (JSC::JSGlobalObject::offsetOfStringPrototype): (JSC::JSGlobalObject::offsetOfBigIntPrototype): (JSC::JSGlobalObject::offsetOfSymbolPrototype): * Source/JavaScriptCore/runtime/JSGlobalObjectInlines.h: (JSC::JSGlobalObject::performProxyObjectHasFunction const): (JSC::JSGlobalObject::performProxyObjectGetFunction const): (JSC::JSGlobalObject::performProxyObjectGetFunctionConcurrently const): (JSC::JSGlobalObject::performProxyObjectGetByValFunction const): (JSC::JSGlobalObject::performProxyObjectGetByValFunctionConcurrently const): (JSC::JSGlobalObject::performProxyObjectSetSloppyFunction const): (JSC::JSGlobalObject::performProxyObjectSetSloppyFunctionConcurrently const): (JSC::JSGlobalObject::performProxyObjectSetStrictFunction const): (JSC::JSGlobalObject::performProxyObjectSetStrictFunctionConcurrently const): * Source/JavaScriptCore/runtime/StructureInlines.h: Canonical link: https://commits.webkit.org/279136@main
- Loading branch information
1 parent
19697c5
commit 57affb6
Showing
8 changed files
with
112 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.