< prev index next >

src/hotspot/share/compiler/compilerDefinitions.cpp

Print this page
rev 47445 : 8171853: Remove Shark compiler


  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "runtime/globals.hpp"
  27 #include "runtime/globals_extension.hpp"
  28 #include "compiler/compilerDefinitions.hpp"
  29 
  30 const char* compilertype2name_tab[compiler_number_of_types] = {
  31   "",
  32   "c1",
  33   "c2",
  34   "jvmci",
  35   "shark"
  36 };
  37 
  38 #if defined(COMPILER2) || defined(SHARK)
  39 CompLevel  CompLevel_highest_tier      = CompLevel_full_optimization;  // pure C2 and tiered or JVMCI and tiered
  40 #elif defined(COMPILER1)
  41 CompLevel  CompLevel_highest_tier      = CompLevel_simple;             // pure C1 or JVMCI
  42 #else
  43 CompLevel  CompLevel_highest_tier      = CompLevel_none;
  44 #endif
  45 
  46 #if defined(TIERED)
  47 CompLevel  CompLevel_initial_compile   = CompLevel_full_profile;        // tiered
  48 #elif defined(COMPILER1) || INCLUDE_JVMCI
  49 CompLevel  CompLevel_initial_compile   = CompLevel_simple;              // pure C1 or JVMCI
  50 #elif defined(COMPILER2) || defined(SHARK)
  51 CompLevel  CompLevel_initial_compile   = CompLevel_full_optimization;   // pure C2
  52 #else
  53 CompLevel  CompLevel_initial_compile   = CompLevel_none;
  54 #endif
  55 
  56 #if defined(COMPILER2)
  57 CompMode  Compilation_mode             = CompMode_server;
  58 #elif defined(COMPILER1)
  59 CompMode  Compilation_mode             = CompMode_client;
  60 #else
  61 CompMode  Compilation_mode             = CompMode_none;
  62 #endif
  63 
  64 #ifdef TIERED
  65 void set_client_compilation_mode() {
  66   Compilation_mode = CompMode_client;
  67   CompLevel_highest_tier = CompLevel_simple;
  68   CompLevel_initial_compile = CompLevel_simple;
  69   FLAG_SET_ERGO(bool, TieredCompilation, false);
  70   FLAG_SET_ERGO(bool, ProfileInterpreter, false);




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "runtime/globals.hpp"
  27 #include "runtime/globals_extension.hpp"
  28 #include "compiler/compilerDefinitions.hpp"
  29 
  30 const char* compilertype2name_tab[compiler_number_of_types] = {
  31   "",
  32   "c1",
  33   "c2",
  34   "jvmci"

  35 };
  36 
  37 #if defined(COMPILER2)
  38 CompLevel  CompLevel_highest_tier      = CompLevel_full_optimization;  // pure C2 and tiered or JVMCI and tiered
  39 #elif defined(COMPILER1)
  40 CompLevel  CompLevel_highest_tier      = CompLevel_simple;             // pure C1 or JVMCI
  41 #else
  42 CompLevel  CompLevel_highest_tier      = CompLevel_none;
  43 #endif
  44 
  45 #if defined(TIERED)
  46 CompLevel  CompLevel_initial_compile   = CompLevel_full_profile;        // tiered
  47 #elif defined(COMPILER1) || INCLUDE_JVMCI
  48 CompLevel  CompLevel_initial_compile   = CompLevel_simple;              // pure C1 or JVMCI
  49 #elif defined(COMPILER2)
  50 CompLevel  CompLevel_initial_compile   = CompLevel_full_optimization;   // pure C2
  51 #else
  52 CompLevel  CompLevel_initial_compile   = CompLevel_none;
  53 #endif
  54 
  55 #if defined(COMPILER2)
  56 CompMode  Compilation_mode             = CompMode_server;
  57 #elif defined(COMPILER1)
  58 CompMode  Compilation_mode             = CompMode_client;
  59 #else
  60 CompMode  Compilation_mode             = CompMode_none;
  61 #endif
  62 
  63 #ifdef TIERED
  64 void set_client_compilation_mode() {
  65   Compilation_mode = CompMode_client;
  66   CompLevel_highest_tier = CompLevel_simple;
  67   CompLevel_initial_compile = CompLevel_simple;
  68   FLAG_SET_ERGO(bool, TieredCompilation, false);
  69   FLAG_SET_ERGO(bool, ProfileInterpreter, false);


< prev index next >