diff src/share/vm/utilities/macros.hpp @ 7226:8a3efb8c831d

Merge.
author Christian Haeubl <haeubl@ssw.jku.at>
date Fri, 14 Dec 2012 13:02:49 +0100
parents 5d0bb7d52783
children 5fc51c1ecdeb
line wrap: on
line diff
--- a/src/share/vm/utilities/macros.hpp	Fri Dec 14 12:05:35 2012 +0100
+++ b/src/share/vm/utilities/macros.hpp	Fri Dec 14 13:02:49 2012 +0100
@@ -182,9 +182,23 @@
 #ifdef GRAAL
 #define GRAAL_ONLY(code) code
 #define NOT_GRAAL(code)
+#if !defined(COMPILER1) && !defined(COMPILER2)
+// Graal is the only compiler in the system and so will be used for compilation
+// requests issued by the compile broker.
+#define GRAALVM
+#define GRAALVM_ONLY(code) code
+#define NOT_GRAALVM(code)
 #else
+// Graal is not the only compiler in the system and so will only be used for
+// compilation requests issued via the Graal API
+#define GRAALVM_ONLY(code)
+#define NOT_GRAALVM(code) code
+#endif
+#else // !GRAAL
 #define GRAAL_ONLY(code)
 #define NOT_GRAAL(code) code
+#define GRAALVM_ONLY(code)
+#define NOT_GRAALVM(code) code
 #endif // GRAAL
 
 #ifdef HIGH_LEVEL_INTERPRETER