-
Notifications
You must be signed in to change notification settings - Fork 736
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
Generate inline superclass test for Class.isAssignableFrom on Z #20855
base: master
Are you sure you want to change the base?
Generate inline superclass test for Class.isAssignableFrom on Z #20855
Conversation
093a9de
to
e0ce9ec
Compare
32f0761
to
4da8d70
Compare
4da8d70
to
6d94a59
Compare
d4d8676
to
ce999ca
Compare
@r30shah can you review please? |
generateS390BranchInstruction(cg, TR::InstOpCode::BRC, TR::InstOpCode::COND_BRC, node, failLabel); | ||
} | ||
} | ||
genTestIsSuper(cg, node, fromClassReg, toClassReg, sr1, sr2, NULL, NULL, toClassDepth, failLabel, successLabel, helperCallLabel, deps, NULL, false, NULL, NULL); |
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.
getTestIsSuper
is used by checkAssignableFrom old code and old instance of and checkcast code. We should make the changes is new isAssignableFrom with intention to clean-up old code in mind. I would take a look at genTestIsSuper
and genInstanceOfOrCheckcastSuperClassTest
and refactor common code to the single function. Currently the code in both is repeated twice with some subtle changes
adds superclass check checks for class depth at compile time to skip over superclass test for the case when toClassDepth > fromClassDepth Signed-off-by: Matthew Hall <[email protected]>
e49baeb
to
63470fb
Compare
adds superclass check
checks for class depth at compile time to skip over superclass test for the case when toClassDepth > fromClassDepth
This PR does not enable the change. It will be enabled in a later PR.
tests on this branch:
vmfarm
jenkins personal
tests on branch with change enabled:
vmfarm
jenkins personal