diff src/share/vm/compiler/abstractCompiler.hpp @ 7125:1baf7f1e3f23

decoupled C++ Graal runtime from C1
author Doug Simon <doug.simon@oracle.com>
date Mon, 03 Dec 2012 15:32:17 +0100
parents e522a00b91aa
children 6a8b22829e36
line wrap: on
line diff
--- a/src/share/vm/compiler/abstractCompiler.hpp	Mon Dec 03 13:56:13 2012 +0100
+++ b/src/share/vm/compiler/abstractCompiler.hpp	Mon Dec 03 15:32:17 2012 +0100
@@ -50,26 +50,36 @@
   // Missing feature tests
   virtual bool supports_native()                 { return true; }
   virtual bool supports_osr   ()                 { return true; }
-#if defined(TIERED) || ( !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK))
+#if defined(TIERED) || ( !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK) && !defined(GRAAL))
   virtual bool is_c1   ()                        { return false; }
   virtual bool is_c2   ()                        { return false; }
   virtual bool is_shark()                        { return false; }
+  virtual bool is_graal()                        { return false; }
 #else
 #ifdef COMPILER1
   bool is_c1   ()                                { return true; }
   bool is_c2   ()                                { return false; }
   bool is_shark()                                { return false; }
+  bool is_graal()                                { return false; }
 #endif // COMPILER1
 #ifdef COMPILER2
   bool is_c1   ()                                { return false; }
   bool is_c2   ()                                { return true; }
   bool is_shark()                                { return false; }
+  bool is_graal()                                { return false; }
 #endif // COMPILER2
 #ifdef SHARK
   bool is_c1   ()                                { return false; }
   bool is_c2   ()                                { return false; }
   bool is_shark()                                { return true; }
+  bool is_graal()                                { return false; }
 #endif // SHARK
+#ifdef GRAAL
+  bool is_c1   ()                                { return false; }
+  bool is_c2   ()                                { return false; }
+  bool is_shark()                                { return false; }
+  bool is_graal()                                { return true; }
+#endif // GRAAL
 #endif // TIERED
 
   void mark_initialized()                        { _is_initialized = true; }