-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: Add tests to validate recent fix commits
- Loading branch information
Showing
5 changed files
with
148 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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 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 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
12 changes: 12 additions & 0 deletions
12
jasm-composition-jvm/src/test/resources/samples/jasm/Example-push-type.jasm
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.super java/lang/Object | ||
.class public super Example { | ||
.method public exampleMethod ()Ljava/lang/Class; { | ||
parameters: { this }, | ||
code: { | ||
A: | ||
ldc Ljava/lang/String; | ||
areturn | ||
B: | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
jasm-composition-jvm/src/test/resources/samples/jasm/Example-wide-invoke.jasm
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.super java/lang/Object | ||
.class public super Example { | ||
.method public exampleMethod ()I { | ||
parameters: { this }, | ||
code: { | ||
A: | ||
iconst_1 | ||
ldc 10000000L | ||
bipush 250 | ||
invokestatic java/lang/Math.multiplyExact (JI)J | ||
pop2 | ||
ireturn | ||
B: | ||
} | ||
} | ||
} |