Mercurial > hg > truffle
comparison src/share/vm/utilities/macros.hpp @ 7154:5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 12 Dec 2012 21:36:40 +0100 |
parents | e522a00b91aa |
children | 5fc51c1ecdeb |
comparison
equal
deleted
inserted
replaced
7153:c421c19b7bf8 | 7154:5d0bb7d52783 |
---|---|
180 #endif // COMPILER2 | 180 #endif // COMPILER2 |
181 | 181 |
182 #ifdef GRAAL | 182 #ifdef GRAAL |
183 #define GRAAL_ONLY(code) code | 183 #define GRAAL_ONLY(code) code |
184 #define NOT_GRAAL(code) | 184 #define NOT_GRAAL(code) |
185 #else | 185 #if !defined(COMPILER1) && !defined(COMPILER2) |
186 // Graal is the only compiler in the system and so will be used for compilation | |
187 // requests issued by the compile broker. | |
188 #define GRAALVM | |
189 #define GRAALVM_ONLY(code) code | |
190 #define NOT_GRAALVM(code) | |
191 #else | |
192 // Graal is not the only compiler in the system and so will only be used for | |
193 // compilation requests issued via the Graal API | |
194 #define GRAALVM_ONLY(code) | |
195 #define NOT_GRAALVM(code) code | |
196 #endif | |
197 #else // !GRAAL | |
186 #define GRAAL_ONLY(code) | 198 #define GRAAL_ONLY(code) |
187 #define NOT_GRAAL(code) code | 199 #define NOT_GRAAL(code) code |
200 #define GRAALVM_ONLY(code) | |
201 #define NOT_GRAALVM(code) code | |
188 #endif // GRAAL | 202 #endif // GRAAL |
189 | 203 |
190 #ifdef HIGH_LEVEL_INTERPRETER | 204 #ifdef HIGH_LEVEL_INTERPRETER |
191 #define HIGH_LEVEL_INTERPRETER_ONLY(code) code | 205 #define HIGH_LEVEL_INTERPRETER_ONLY(code) code |
192 #define NOT_HIGH_LEVEL_INTERPRETER(code) | 206 #define NOT_HIGH_LEVEL_INTERPRETER(code) |