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

Replace MethodType & MethodTypeForm with OpenJDK implementation #7625

Closed
wants to merge 10 commits into from

Conversation

fengxue-IS
Copy link
Contributor

@fengxue-IS fengxue-IS commented Oct 29, 2019

  • Implement/stub required classes and methods
  • Create MethodTypeHelper class to provide OpenJ9 MethodType static APIs
  • Update MethodType refs to OpenJDK equivalent

Depends: #7628 #8066
Part of: #7352

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

runtime/vm/MHInterpreter.cpp Outdated Show resolved Hide resolved
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
@fengxue-IS fengxue-IS changed the title WIP: Replace MethodType & MethodTypeForm with OpenJDK implementation Replace MethodType & MethodTypeForm with OpenJDK implementation Mar 9, 2020
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>
@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.

#10096 depends on this PR.

@pshipton
Copy link
Member

pshipton commented Jul 7, 2020

Note there are merge conflicts.

@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