8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
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 #ifndef SHARE_VM_UTILITIES_ACCESSFLAGS_HPP
26 #define SHARE_VM_UTILITIES_ACCESSFLAGS_HPP
27
28 #include "memory/allocation.hpp"
29 #include "prims/jvm.h"
30 #include "utilities/macros.hpp"
31
32 // AccessFlags is an abstraction over Java access flags.
33
34
35 enum {
36 // See jvm.h for shared JVM_ACC_XXX access flags
37
38 // HotSpot-specific access flags
39
40 // flags actually put in .class file
41 JVM_ACC_WRITTEN_FLAGS = 0x00007FFF,
42
43 // Method* flags
44 JVM_ACC_MONITOR_MATCH = 0x10000000, // True if we know that monitorenter/monitorexit bytecodes match
45 JVM_ACC_HAS_MONITOR_BYTECODES = 0x20000000, // Method contains monitorenter/monitorexit bytecodes
46 JVM_ACC_HAS_LOOPS = 0x40000000, // Method has loops
47 JVM_ACC_LOOPS_FLAG_INIT = (int)0x80000000,// The loop flag has been initialized
48 JVM_ACC_QUEUED = 0x01000000, // Queued for compilation
49 JVM_ACC_NOT_C2_COMPILABLE = 0x02000000,
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
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 #ifndef SHARE_VM_UTILITIES_ACCESSFLAGS_HPP
26 #define SHARE_VM_UTILITIES_ACCESSFLAGS_HPP
27
28 #include "jvm.h"
29 #include "memory/allocation.hpp"
30 #include "utilities/macros.hpp"
31
32 // AccessFlags is an abstraction over Java access flags.
33
34
35 enum {
36 // See jvm.h for shared JVM_ACC_XXX access flags
37
38 // HotSpot-specific access flags
39
40 // flags actually put in .class file
41 JVM_ACC_WRITTEN_FLAGS = 0x00007FFF,
42
43 // Method* flags
44 JVM_ACC_MONITOR_MATCH = 0x10000000, // True if we know that monitorenter/monitorexit bytecodes match
45 JVM_ACC_HAS_MONITOR_BYTECODES = 0x20000000, // Method contains monitorenter/monitorexit bytecodes
46 JVM_ACC_HAS_LOOPS = 0x40000000, // Method has loops
47 JVM_ACC_LOOPS_FLAG_INIT = (int)0x80000000,// The loop flag has been initialized
48 JVM_ACC_QUEUED = 0x01000000, // Queued for compilation
49 JVM_ACC_NOT_C2_COMPILABLE = 0x02000000,
|