Mercurial > hg > graal-jvmci-8
annotate src/share/vm/jvmci/vmStructs_jvmci.hpp @ 22575:569c82ebb96e
Replace JVMCICompileWithC1Only with package based controls
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 17 Sep 2015 18:25:08 -0700 |
parents | c3b49e9d0f48 |
children | 24505bf61633 |
rev | line source |
---|---|
13098
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
1 /* |
14574
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
13098
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
4 * |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
8 * |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
13 * accompanied this code). |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
14 * |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
18 * |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
21 * questions. |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
22 * |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
23 */ |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
24 |
21559
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
25 #ifndef SHARE_VM_JVMCI_VMSTRUCTS_JVMCI_HPP |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
26 #define SHARE_VM_JVMCI_VMSTRUCTS_JVMCI_HPP |
13098
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
27 |
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
28 #include "compiler/abstractCompiler.hpp" |
21559
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
29 #include "jvmci/jvmciCodeInstaller.hpp" |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
30 #include "jvmci/jvmciCompilerToVM.hpp" |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
31 #include "jvmci/jvmciEnv.hpp" |
13098
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
32 |
21559
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
33 #define VM_STRUCTS_JVMCI(nonstatic_field, static_field) \ |
22460
f27c163d7dc2
moved JVMCI fields from ThreadShadow to Thread
Doug Simon <doug.simon@oracle.com>
parents:
21559
diff
changeset
|
34 nonstatic_field(JavaThread, _pending_deoptimization, int) \ |
f27c163d7dc2
moved JVMCI fields from ThreadShadow to Thread
Doug Simon <doug.simon@oracle.com>
parents:
21559
diff
changeset
|
35 nonstatic_field(JavaThread, _pending_failed_speculation, oop) \ |
f27c163d7dc2
moved JVMCI fields from ThreadShadow to Thread
Doug Simon <doug.simon@oracle.com>
parents:
21559
diff
changeset
|
36 nonstatic_field(JavaThread, _pending_transfer_to_interpreter, bool) \ |
21545
a04dfbf81bc4
removed dependency from JVMCI class HotSpotProfilingInfo to non-JVMCI class StructuredGraph (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
19782
diff
changeset
|
37 nonstatic_field(MethodData, _jvmci_ir_size, int) \ |
21559
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
38 nonstatic_field(JVMCIEnv, _task, CompileTask*) \ |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
39 nonstatic_field(JVMCIEnv, _jvmti_can_hotswap_or_post_breakpoint, bool) \ |
13098
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
40 |
21559
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
41 #define VM_TYPES_JVMCI(declare_type, declare_toplevel_type) \ |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
42 declare_toplevel_type(JVMCIEnv) \ |
13098
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
43 |
21559
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
44 #define VM_INT_CONSTANTS_JVMCI(declare_constant, declare_preprocessor_constant) \ |
18403
b9f2356c3a69
HotSpotVMConfig: use the correct deopt reason constants
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
16535
diff
changeset
|
45 declare_constant(Deoptimization::Reason_unreached0) \ |
b9f2356c3a69
HotSpotVMConfig: use the correct deopt reason constants
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
16535
diff
changeset
|
46 declare_constant(Deoptimization::Reason_type_checked_inlining) \ |
b9f2356c3a69
HotSpotVMConfig: use the correct deopt reason constants
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
16535
diff
changeset
|
47 declare_constant(Deoptimization::Reason_optimized_type_check) \ |
13818
d2f520f46180
added more unit tests for meta.api, discovering and fixing an issue with HotSpotResolvedJavaField.getModifiers() in the process
Doug Simon <doug.simon@oracle.com>
parents:
13641
diff
changeset
|
48 declare_constant(Deoptimization::Reason_aliasing) \ |
16535
ada0a7729b6f
Truffle: introduce debug option to print the stack trace when transferring to the interpreter
Andreas Woess <andreas.woess@jku.at>
parents:
15726
diff
changeset
|
49 declare_constant(Deoptimization::Reason_transfer_to_interpreter) \ |
18403
b9f2356c3a69
HotSpotVMConfig: use the correct deopt reason constants
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
16535
diff
changeset
|
50 declare_constant(Deoptimization::Reason_not_compiled_exception_handler) \ |
b9f2356c3a69
HotSpotVMConfig: use the correct deopt reason constants
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
16535
diff
changeset
|
51 declare_constant(Deoptimization::Reason_unresolved) \ |
b9f2356c3a69
HotSpotVMConfig: use the correct deopt reason constants
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
16535
diff
changeset
|
52 declare_constant(Deoptimization::Reason_jsr_mismatch) \ |
21559
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
53 declare_constant(JVMCIEnv::ok) \ |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
54 declare_constant(JVMCIEnv::dependencies_failed) \ |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
55 declare_constant(JVMCIEnv::dependencies_invalid) \ |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
56 declare_constant(JVMCIEnv::cache_full) \ |
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
57 declare_constant(JVMCIEnv::code_too_large) \ |
13818
d2f520f46180
added more unit tests for meta.api, discovering and fixing an issue with HotSpotResolvedJavaField.getModifiers() in the process
Doug Simon <doug.simon@oracle.com>
parents:
13641
diff
changeset
|
58 \ |
d2f520f46180
added more unit tests for meta.api, discovering and fixing an issue with HotSpotResolvedJavaField.getModifiers() in the process
Doug Simon <doug.simon@oracle.com>
parents:
13641
diff
changeset
|
59 declare_preprocessor_constant("JVM_ACC_SYNTHETIC", JVM_ACC_SYNTHETIC) \ |
d2f520f46180
added more unit tests for meta.api, discovering and fixing an issue with HotSpotResolvedJavaField.getModifiers() in the process
Doug Simon <doug.simon@oracle.com>
parents:
13641
diff
changeset
|
60 declare_preprocessor_constant("JVM_RECOGNIZED_FIELD_MODIFIERS", JVM_RECOGNIZED_FIELD_MODIFIERS) \ |
14093 | 61 \ |
62 declare_constant(CompilerToVM::KLASS_TAG) \ | |
63 declare_constant(CompilerToVM::SYMBOL_TAG) \ | |
14574
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
64 \ |
22572
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
65 declare_constant(BitData::exception_seen_flag) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
66 declare_constant(BitData::null_seen_flag) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
67 declare_constant(CounterData::count_off) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
68 declare_constant(JumpData::taken_off_set) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
69 declare_constant(JumpData::displacement_off_set) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
70 declare_constant(ReceiverTypeData::nonprofiled_count_off_set) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
71 declare_constant(ReceiverTypeData::receiver_type_row_cell_count) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
72 declare_constant(ReceiverTypeData::receiver0_offset) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
73 declare_constant(ReceiverTypeData::count0_offset) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
74 declare_constant(BranchData::not_taken_off_set) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
75 declare_constant(ArrayData::array_len_off_set) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
76 declare_constant(ArrayData::array_start_off_set) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
77 declare_constant(MultiBranchData::per_case_cell_count) \ |
c3b49e9d0f48
HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
22460
diff
changeset
|
78 \ |
14574
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
79 declare_constant(CodeInstaller::VERIFIED_ENTRY) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
80 declare_constant(CodeInstaller::UNVERIFIED_ENTRY) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
81 declare_constant(CodeInstaller::OSR_ENTRY) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
82 declare_constant(CodeInstaller::EXCEPTION_HANDLER_ENTRY) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
83 declare_constant(CodeInstaller::DEOPT_HANDLER_ENTRY) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
84 declare_constant(CodeInstaller::INVOKEINTERFACE) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
85 declare_constant(CodeInstaller::INVOKEVIRTUAL) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
86 declare_constant(CodeInstaller::INVOKESTATIC) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
87 declare_constant(CodeInstaller::INVOKESPECIAL) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
88 declare_constant(CodeInstaller::INLINE_INVOKE) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
89 declare_constant(CodeInstaller::POLL_NEAR) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
90 declare_constant(CodeInstaller::POLL_RETURN_NEAR) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
91 declare_constant(CodeInstaller::POLL_FAR) \ |
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
92 declare_constant(CodeInstaller::POLL_RETURN_FAR) \ |
18661 | 93 declare_constant(CodeInstaller::CARD_TABLE_SHIFT) \ |
94 declare_constant(CodeInstaller::CARD_TABLE_ADDRESS) \ | |
14574
6bab029d6e3a
removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents:
14543
diff
changeset
|
95 declare_constant(CodeInstaller::INVOKE_INVALID) \ |
15726
668d158f780c
Rename HotSpotResolvedObjectType.metaspaceKlass to getMetaspaceKlass
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
15052
diff
changeset
|
96 \ |
668d158f780c
Rename HotSpotResolvedObjectType.metaspaceKlass to getMetaspaceKlass
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
15052
diff
changeset
|
97 declare_constant(Method::invalid_vtable_index) \ |
13098
d61687130412
move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff
changeset
|
98 |
21559
be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21545
diff
changeset
|
99 #endif // SHARE_VM_JVMCI_VMSTRUCTS_JVMCI_HPP |