-
Notifications
You must be signed in to change notification settings - Fork 396
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 infrastructure to support relocatable compilations of the invokeHandle/invokeDynamic bytecodes #7439
Conversation
dsouzai
commented
Aug 12, 2024
- Add SVM Specific options
- Add new TR_ExternalRelocationTargetKind values
- Add relocations for TR_CallsiteTableEntryAddress
- Add relocations for TR_MethodTypeTableEntryAddress
@jdmpapin do you mind reviewing? |
d81b8ed
to
4326da9
Compare
Rebased onto the latest |
Signed-off-by: Irwin D'Souza <[email protected]>
Add the following relo kinds: * TR_ValidateDynamicMethodFromCallsiteIndex * TR_ValidateHandleMethodFromCPIndex * TR_CallsiteTableEntryAddress * TR_MethodTypeTableEntryAddress Signed-off-by: Irwin D'Souza <[email protected]>
Signed-off-by: Irwin D'Souza <[email protected]>
Signed-off-by: Irwin D'Souza <[email protected]>
@@ -1794,6 +1800,12 @@ void OMR::Power::MemoryReference::accessStaticItem(TR::Node *node, TR::SymbolRef | |||
loadAddressConstant(cg, true, nodeForSymbol, 1, reg, NULL, false, TR_MethodEnterExitHookAddress); | |||
return; | |||
} | |||
else if (symbol->isCallSiteTableEntry() && !refIsUnresolved && cg->comp()->compileRelocatableCode() |
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.
this else if
is missing its closing parenthesis
@@ -1806,6 +1812,12 @@ void OMR::Power::MemoryReference::accessStaticItem(TR::Node *node, TR::SymbolRef | |||
loadAddressConstant(cg, true, nodeForSymbol, 1, reg, NULL, false, TR_CallsiteTableEntryAddress); | |||
return; | |||
} | |||
else if (symbol->isMethodTypeTableEntry() && !refIsUnresolved && cg->comp()->compileRelocatableCode() |
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.
another missing parenthesis
I think I'll spit this PR into two so that they are more closely coupled to the OJ9 PRs that are dependent on them. |