summaryrefslogtreecommitdiff
path: root/test/401-optimizing-compiler/src/Main.java
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-04-03 16:49:25 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-04-03 16:49:25 +0000
commita7b2826fa469c626ff2c3ff26fd848c28bccc092 (patch)
treef53277bb95088b5b650cf982d0da666f1204517a /test/401-optimizing-compiler/src/Main.java
parent5a4139fd33547d09c94d9650157e3a4e4c9eede4 (diff)
parent4a34a428c6a2588e0857ef6baf88f1b73ce65958 (diff)
Merge "Support passing arguments to invoke-static* instructions."
Diffstat (limited to 'test/401-optimizing-compiler/src/Main.java')
-rw-r--r--test/401-optimizing-compiler/src/Main.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/401-optimizing-compiler/src/Main.java b/test/401-optimizing-compiler/src/Main.java
index 2609e0f027..4031ff1fb8 100644
--- a/test/401-optimizing-compiler/src/Main.java
+++ b/test/401-optimizing-compiler/src/Main.java
@@ -30,6 +30,9 @@ public class Main {
public static void $opt$TestInvokeStatic() {
printStaticMethod();
+ printStaticMethodWith2Args(1, 2);
+ printStaticMethodWith5Args(1, 2, 3, 4, 5);
+ printStaticMethodWith7Args(1, 2, 3, 4, 5, 6, 7);
forceGCStaticMethod();
throwStaticMethod();
}
@@ -38,6 +41,20 @@ public class Main {
System.out.println("In static method");
}
+ public static void printStaticMethodWith2Args(int a, int b) {
+ System.out.println("In static method with 2 args " + a + " " + b);
+ }
+
+ public static void printStaticMethodWith5Args(int a, int b, int c, int d, int e) {
+ System.out.println("In static method with 5 args "
+ + a + " " + b + " " + c + " " + d + " " + e);
+ }
+
+ public static void printStaticMethodWith7Args(int a, int b, int c, int d, int e, int f, int g) {
+ System.out.println("In static method with 7 args "
+ + a + " " + b + " " + c + " " + d + " " + e + " " + f + " " + g);
+ }
+
public static void forceGCStaticMethod() {
Runtime.getRuntime().gc();
Runtime.getRuntime().gc();