-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8315771: [JVMCI] Resolution of bootstrap methods with int[] static arguments #15588
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b0940de
Implement lookup of bootstrap methods with static arguments of type i…
Zeavee 2cdc0b4
Rewrite doc for bootstrapArgumentIndexAt and add second argument to a…
Zeavee b33ffed
Add more details to the documentation and add a pseudo code example f…
Zeavee 093d0ce
Add missing line of pseudo code and applied modification suggestion
Zeavee 4ec0a7b
Add CachedBSMArgs to resolve arguments lazily instead of letting the …
Zeavee 079969c
Fix BootstrapMethodInvocation.getStaticArguments documentation and ad…
Zeavee d6aa593
Use lookupConstant instead of lookupConstantInPool in CachedBSMArgs.get
Zeavee d75e092
Add undefined behavior documentation for bootstrapArgumentIndexAt and…
Zeavee f4377fc
Update getStaticArguments documentation example and update TestDynami…
Zeavee 9e0627a
Add -XX:UseBootstrapCallInfo=3 to TestDynamicConstant
Zeavee ea4aa98
Add an extra run configuration for TestDynamicConstant instead of rep…
Zeavee 7c27481
Update BootstrapMethodInvocation.getStaticArguments documentation
Zeavee 7a8d9f2
Iterate over all static arguments in TestDynamicConstant
Zeavee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,19 +169,24 @@ interface BootstrapMethodInvocation { | |
| * entry. To resolve this entry, the corresponding bootstrap method has to be called first: | ||
| * | ||
| * <pre> | ||
| * resolveIndyOrCondy(int index, int opcode) { | ||
| * bsmInvocation = cp.lookupBootstrapMethodInvocation(index, opcode); | ||
| * staticArguments = bsmInvocation.getStaticArguments(); | ||
| * for each argument in staticArguments { | ||
| * if argument is PrimitiveArgument { | ||
| * // argument is a condy, so opcode becomes -1 | ||
| * resolveIndyOrCondy(argument.asInt(), -1); | ||
| * lookupConstant(int index, boolean resolve) { | ||
|
||
| * constant = cp.lookupConstant(index, resolve); | ||
| * if constant is null { | ||
| * bsmInvocation = cp.lookupBootstrapMethodInvocation(index, -1); | ||
| * staticArguments = bsmInvocation.getStaticArguments(); | ||
| * for each argument in staticArguments { | ||
| * if argument is PrimitiveArgument { | ||
| * lookupConstant(argument.asInt(), resolve); | ||
| * } | ||
| * } | ||
| * call boostrap method with resolved arguments to get constant | ||
| * } | ||
| * call original boostrap method with resolved arguments | ||
| * return constant; | ||
| * } | ||
| * </pre> | ||
| * | ||
| * The other types of entries are already resolved an can be used directly. | ||
| * | ||
| * @jvms 5.4.3.6 | ||
| */ | ||
| List<JavaConstant> getStaticArguments(); | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 class needs documentation.