hotspot/src/share/vm/jvmci/jvmci_globals.hpp
changeset 38273 2634194d7555
parent 36313 e7eff81d7f1d
child 39117 59fa99a45873
equal deleted inserted replaced
38267:29feb145a316 38273:2634194d7555
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    30 //
    30 //
    31 // Defines all global flags used by the JVMCI compiler. Only flags that need
    31 // Defines all global flags used by the JVMCI compiler. Only flags that need
    32 // to be accessible to the JVMCI C++ code should be defined here. All other
    32 // to be accessible to the JVMCI C++ code should be defined here. All other
    33 // JVMCI flags should be defined in JVMCIOptions.java.
    33 // JVMCI flags should be defined in JVMCIOptions.java.
    34 //
    34 //
    35 #define JVMCI_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, range, constraint) \
    35 #define JVMCI_FLAGS(develop, \
       
    36                     develop_pd, \
       
    37                     product, \
       
    38                     product_pd, \
       
    39                     diagnostic, \
       
    40                     experimental, \
       
    41                     notproduct, \
       
    42                     range, \
       
    43                     constraint, \
       
    44                     writeable) \
    36                                                                             \
    45                                                                             \
    37   experimental(bool, EnableJVMCI, false,                                    \
    46   experimental(bool, EnableJVMCI, false,                                    \
    38           "Enable JVMCI")                                                   \
    47           "Enable JVMCI")                                                   \
    39                                                                             \
    48                                                                             \
    40   experimental(bool, UseJVMCICompiler, false,                               \
    49   experimental(bool, UseJVMCICompiler, false,                               \
    94             DECLARE_PD_PRODUCT_FLAG, \
   103             DECLARE_PD_PRODUCT_FLAG, \
    95             DECLARE_DIAGNOSTIC_FLAG, \
   104             DECLARE_DIAGNOSTIC_FLAG, \
    96             DECLARE_EXPERIMENTAL_FLAG, \
   105             DECLARE_EXPERIMENTAL_FLAG, \
    97             DECLARE_NOTPRODUCT_FLAG, \
   106             DECLARE_NOTPRODUCT_FLAG, \
    98             IGNORE_RANGE, \
   107             IGNORE_RANGE, \
    99             IGNORE_CONSTRAINT)
   108             IGNORE_CONSTRAINT, \
       
   109             IGNORE_WRITEABLE)
   100 
   110 
   101 class JVMCIGlobals {
   111 class JVMCIGlobals {
   102  public:
   112  public:
   103   // Return true if jvmci flags are consistent.
   113   // Return true if jvmci flags are consistent.
   104   static bool check_jvmci_flags_are_consistent();
   114   static bool check_jvmci_flags_are_consistent();