-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add some JIT comments to make debugging easier #13842
Add some JIT comments to make debugging easier #13842
Conversation
6c4d378
to
4038d1a
Compare
EWS run on previous version of this PR (hash 4038d1a)
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rs=me
@@ -4044,6 +4045,7 @@ class LowerDFGToB3 { | |||
CodeOrigin nodeSemanticOrigin = m_node->origin.semantic; | |||
CacheableIdentifier identifier = m_node->cacheableIdentifier(); | |||
patchpoint->setGenerator([=] (CCallHelpers& jit, const StackmapGenerationParams& params) { | |||
JIT_COMMENT(jit, "compileGetByIdMegamorphic"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compile
is not necessary.
@@ -3853,6 +3853,7 @@ class LowerDFGToB3 { | |||
patchpoint->appendSomeRegister(val); | |||
patchpoint->setGenerator( | |||
[=] (CCallHelpers& jit, const StackmapGenerationParams& params) { | |||
JIT_COMMENT(jit, "compileAssertNotEmpty"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compile
is not necessary.
@@ -4100,6 +4102,7 @@ class LowerDFGToB3 { | |||
State* state = &m_ftlState; | |||
CodeOrigin nodeSemanticOrigin = m_node->origin.semantic; | |||
patchpoint->setGenerator([=] (CCallHelpers& jit, const StackmapGenerationParams& params) { | |||
JIT_COMMENT(jit, "compileGetByValMegamorphic"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compile
is not necessary.
@@ -4280,6 +4283,7 @@ class LowerDFGToB3 { | |||
State* state = &m_ftlState; | |||
CodeOrigin nodeSemanticOrigin = node->origin.semantic; | |||
patchpoint->setGenerator([=] (CCallHelpers& jit, const StackmapGenerationParams& params) { | |||
JIT_COMMENT(jit, "compileGetByValWithThis"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compile
is not necessary.
@@ -4437,6 +4441,7 @@ class LowerDFGToB3 { | |||
bool baseIsCell = abstractValue(node->child1()).isType(SpecCell); | |||
CodeOrigin nodeSemanticOrigin = node->origin.semantic; | |||
patchpoint->setGenerator([=] (CCallHelpers& jit, const StackmapGenerationParams& params) { | |||
JIT_COMMENT(jit, "compileGetPrivateName"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compile
is not necessary.
@@ -4585,6 +4590,7 @@ class LowerDFGToB3 { | |||
bool baseIsCell = abstractValue(m_node->child1()).isType(SpecCell); | |||
CodeOrigin nodeSemanticOrigin = node->origin.semantic; | |||
patchpoint->setGenerator([=] (CCallHelpers& jit, const StackmapGenerationParams& params) { | |||
JIT_COMMENT(jit, "compilePrivateBrandAccess"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compile
is not necessary.
@@ -4747,6 +4753,7 @@ class LowerDFGToB3 { | |||
PrivateFieldPutKind privateFieldPutKind = m_node->privateFieldPutKind(); | |||
auto operation = privateFieldPutKind.isDefine() ? operationPutByValDefinePrivateFieldOptimize : operationPutByValSetPrivateFieldOptimize; | |||
patchpoint->setGenerator([=] (CCallHelpers& jit, const StackmapGenerationParams& params) { | |||
JIT_COMMENT(jit, "compilePutPrivateName"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compile
is not necessary.
@@ -374,6 +374,7 @@ void InlineCacheCompiler::generateWithGuard(AccessCase& accessCase, CCallHelpers | |||
|
|||
JSGlobalObject* globalObject = m_globalObject; | |||
CCallHelpers& jit = *m_jit; | |||
JIT_COMMENT(jit, "Begin generateWithGuard"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there supposed to be a matching "End generateWithGuard"
comment here? If not, maybe that'd be a useful addition.
4038d1a
to
bf61026
Compare
EWS run on current version of this PR (hash bf61026)
|
https://bugs.webkit.org/show_bug.cgi?id=256745 rdar://109288342 Reviewed by Yusuke Suzuki. Add some JIT comments to make debugging easier * Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp: (JSC::InlineCacheCompiler::generateWithGuard): (JSC::InlineCacheCompiler::regenerate): * Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp: (JSC::FTL::DFG::LowerDFGToB3::compileAssertNotEmpty): (JSC::FTL::DFG::LowerDFGToB3::compileGetByIdMegamorphic): (JSC::FTL::DFG::LowerDFGToB3::compileGetByValMegamorphic): (JSC::FTL::DFG::LowerDFGToB3::compileGetByValWithThis): (JSC::FTL::DFG::LowerDFGToB3::getPrivateName): (JSC::FTL::DFG::LowerDFGToB3::compilePrivateBrandAccess): (JSC::FTL::DFG::LowerDFGToB3::compilePutPrivateName): (JSC::FTL::DFG::LowerDFGToB3::cachedPutById): (JSC::FTL::DFG::LowerDFGToB3::emitGetTypedArrayByteOffsetExceptSettingResult): (JSC::FTL::DFG::LowerDFGToB3::typedArrayLength): (JSC::FTL::DFG::LowerDFGToB3::compileGetByValImpl): (JSC::FTL::DFG::LowerDFGToB3::compilePutByVal): (JSC::FTL::DFG::LowerDFGToB3::compileDelBy): (JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq): * Source/JavaScriptCore/ftl/FTLOutput.cpp: (JSC::FTL::Output::probeDebugPrint): * Source/JavaScriptCore/ftl/FTLOutput.h: Canonical link: https://commits.webkit.org/264180@main
bf61026
to
d96b776
Compare
Committed 264180@main (d96b776): https://commits.webkit.org/264180@main Reviewed commits have been landed. Closing PR #13842 and removing active labels. |
d96b776
bf61026
π§ͺ wpe-wk2π§ͺ ios-wk2-wptπ§ͺ gtk-wk2π§ͺ api-iosπ§ͺ mac-wk2π§ͺ api-gtkπ§ͺ mac-AS-debug-wk2