Skip to content

Conversation

hankluo6
Copy link
Collaborator

Now pitifulvm can handle invokevirtual opcode. However, current implementation doesn't support any method modifiers, so invokevirtual can access all methods in the class. Also, objects cannot invoke parent's methods, and this will be supported in the future.

Add a new test script: "Invokevirtual.java"

When `invokevirtual` is called, Jvm pops the reference from the
stack and related arguments, then executes method.

Add a new test script: "Invokevirtual.java"
@jserv jserv merged commit 715481e into sysprog21:master Jul 30, 2022
@hankluo6 hankluo6 deleted the virtual branch August 9, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants