diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java @ 9108:b78686983a75

GRAAL-218: add CompileTheWorld functionality Reviewed-by:
author twisti
date Sat, 13 Apr 2013 22:59:27 -0700
parents 220c9bef97a4
children bc26f978b0ce
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Sat Apr 13 22:16:04 2013 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Sat Apr 13 22:59:27 2013 -0700
@@ -393,6 +393,10 @@
         System.gc();
         phaseTransition("bootstrap2");
 
+        if (GraalOptions.CompileTheWorld != null) {
+            new CompileTheWorld().compile();
+            System.exit(0);
+        }
     }
 
     private MetricRateInPhase parsedBytecodesPerSecond;