Skip to content
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

WIP: Replace MemberName class with OpenJDK implementation #7680

Closed
wants to merge 14 commits into from

Conversation

fengxue-IS
Copy link
Contributor

@fengxue-IS fengxue-IS commented Nov 2, 2019

Part of: #7352

Signed-off-by: Jack Lu Jack.S.Lu@ibm.com

@fengxue-IS
Copy link
Contributor Author

Note: First 9 commits are picked from #7625 and should be removed from this PR once the it is delivered.

Also, the native method headers added in MethodHandleNatives are for compilation requirements (VM compiles & passes simple testcases), there may still be patchings required to enable the actual functionality in VM native code.

Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
- MT.returnType -> MT.returnType()
- MT.arguments  -> MT.ptypes()
- MT.argSlots   -> MT.parameterSlotCount()
- MT.dropFirstParameterType -> MT.dropParameterTypes(0,1)
- MT.getInvokeExactHandle() -> MT.invokers().exactInvoker()

Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Name changes:
- MT.arguments  -> MT.ptypes
- MT.returnType -> MT.rtype
- MT.vmResolveFromMethodDescriptorString
	-> MTHelper.vmResolveFromMethodDescriptorString

New refs:
- MethodTypeHelper.class
- MethodTypeForm.class
- MethodType.form
- MethodTypeForm.argCounts

Removed:
- MethodType.stackDescriptionBits
- MethodType.argSlots
	Replaced with parameterSlotCount() API

Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
- Update field name to OpenJDK name
- Remove METHODTYPE_STACKDESCRIPTIONBITS
- Add VMHelpers::getArgSlotFromMethodType API to
	replaces J9VMJAVALANGINVOKEMETHODTYPE_ARGSLOTS marco

Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
- generate stackbits using MT.ptypes

Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
- init a new MemberName object with null class ref

Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
- Fix MethodHandleNatives native method header for Java8

Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
@fengxue-IS fengxue-IS force-pushed the replaceMN branch 2 times, most recently from ec55934 to a0090c6 Compare February 11, 2020 22:54
@pshipton
Copy link
Member

pshipton commented Jul 7, 2020

@fengxue-IS @babsingh is this still relevant?

@babsingh
Copy link
Contributor

babsingh commented Jul 7, 2020

is this still relevant?

yes, we are planning to merge these changes in a partially inactive state.

#10097, #10094 and few other PRs depend on this PR.

@fengxue-IS
Copy link
Contributor Author

Closing this PR as it is no longer relevent.

@fengxue-IS fengxue-IS closed this May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants