annotate src/share/vm/jvmci/vmStructs_jvmci.hpp @ 23791:ece41fdd7334

Expose missing StubRoutines
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 09 Nov 2016 13:54:18 -0800
parents d6bd0b9cd0b6
children 3953f8820df8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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) \
23679
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
34 static_field(CompilerToVM::Data, Klass_vtable_start_offset, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
35 static_field(CompilerToVM::Data, Klass_vtable_length_offset, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
36 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
37 static_field(CompilerToVM::Data, Method_extra_stack_entries, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
38 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
39 static_field(CompilerToVM::Data, SharedRuntime_ic_miss_stub, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
40 static_field(CompilerToVM::Data, SharedRuntime_handle_wrong_method_stub, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
41 static_field(CompilerToVM::Data, SharedRuntime_deopt_blob_unpack, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
42 static_field(CompilerToVM::Data, SharedRuntime_deopt_blob_uncommon_trap, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
43 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
44 static_field(CompilerToVM::Data, ThreadLocalAllocBuffer_alignment_reserve, size_t) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
45 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
46 static_field(CompilerToVM::Data, Universe_collectedHeap, CollectedHeap*) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
47 static_field(CompilerToVM::Data, Universe_base_vtable_size, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
48 static_field(CompilerToVM::Data, Universe_narrow_oop_base, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
49 static_field(CompilerToVM::Data, Universe_narrow_oop_shift, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
50 static_field(CompilerToVM::Data, Universe_narrow_klass_base, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
51 static_field(CompilerToVM::Data, Universe_narrow_klass_shift, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
52 static_field(CompilerToVM::Data, Universe_non_oop_bits, void*) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
53 static_field(CompilerToVM::Data, Universe_verify_oop_mask, uintptr_t) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
54 static_field(CompilerToVM::Data, Universe_verify_oop_bits, uintptr_t) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
55 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
56 static_field(CompilerToVM::Data, _supports_inline_contig_alloc, bool) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
57 static_field(CompilerToVM::Data, _heap_end_addr, HeapWord**) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
58 static_field(CompilerToVM::Data, _heap_top_addr, HeapWord**) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
59 \
23709
1b939a613788 Rename JVMCIRuntime::max_oop_map_stack_offset to CompilerToVM::Data::_max_oop_map_stack_offset
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23705
diff changeset
60 static_field(CompilerToVM::Data, _max_oop_map_stack_offset, int) \
1b939a613788 Rename JVMCIRuntime::max_oop_map_stack_offset to CompilerToVM::Data::_max_oop_map_stack_offset
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23705
diff changeset
61 \
23679
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
62 static_field(CompilerToVM::Data, cardtable_start_address, jbyte*) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
63 static_field(CompilerToVM::Data, cardtable_shift, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
64 static_field(CompilerToVM::Data, g1_young_card, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
65 static_field(CompilerToVM::Data, dirty_card, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
66 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
67 static_field(CompilerToVM::Data, vm_page_size, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
68 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
69 static_field(CompilerToVM::Data, CodeCache_low_bound, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
70 static_field(CompilerToVM::Data, CodeCache_high_bound, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
71 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
72 static_field(CompilerToVM::Data, dsin, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
73 static_field(CompilerToVM::Data, dcos, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
74 static_field(CompilerToVM::Data, dtan, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
75 static_field(CompilerToVM::Data, dexp, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
76 static_field(CompilerToVM::Data, dlog, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
77 static_field(CompilerToVM::Data, dlog10, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
78 static_field(CompilerToVM::Data, dpow, address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
79 \
23791
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
80 static_field(StubRoutines, _sha1_implCompress, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
81 static_field(StubRoutines, _sha1_implCompressMB, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
82 static_field(StubRoutines, _sha256_implCompress, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
83 static_field(StubRoutines, _sha256_implCompressMB, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
84 static_field(StubRoutines, _sha512_implCompress, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
85 static_field(StubRoutines, _sha512_implCompressMB, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
86 static_field(StubRoutines, _updateBytesCRC32, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
87 static_field(StubRoutines, _crc_table_adr, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
88 static_field(StubRoutines, _multiplyToLen, address) \
ece41fdd7334 Expose missing StubRoutines
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23749
diff changeset
89 \
23679
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
90 nonstatic_field(JavaThread, _pending_deoptimization, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
91 nonstatic_field(JavaThread, _pending_failed_speculation, oop) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
92 nonstatic_field(JavaThread, _pending_transfer_to_interpreter, bool) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
93 nonstatic_field(JavaThread, _jvmci_counters, jlong*) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
94 nonstatic_field(MethodData, _jvmci_ir_size, int) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
95 nonstatic_field(JVMCIEnv, _task, CompileTask*) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
96 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
97
21559
be896a1983c0 recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents: 21545
diff changeset
98 #define VM_TYPES_JVMCI(declare_type, declare_toplevel_type) \
23679
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
99 declare_toplevel_type(narrowKlass) \
21559
be896a1983c0 recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents: 21545
diff changeset
100 declare_toplevel_type(JVMCIEnv) \
23730
5de73b32cff8 CompilerToVM::Data should be declared in vmstructs
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 23709
diff changeset
101 declare_toplevel_type(CompilerToVM::Data) \
13098
d61687130412 move GRAAL_ONLY stuff from vmStructs.cpp to separate vmStructs_graal.hpp file
twisti
parents:
diff changeset
102
21559
be896a1983c0 recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents: 21545
diff changeset
103 #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
104 declare_constant(Deoptimization::Reason_unreached0) \
b9f2356c3a69 HotSpotVMConfig: use the correct deopt reason constants
Gilles Duboscq <duboscq@ssw.jku.at>
parents: 16535
diff changeset
105 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
106 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
107 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
108 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
109 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
110 declare_constant(Deoptimization::Reason_unresolved) \
b9f2356c3a69 HotSpotVMConfig: use the correct deopt reason constants
Gilles Duboscq <duboscq@ssw.jku.at>
parents: 16535
diff changeset
111 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
112 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
113 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
114 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
115 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
116 declare_constant(JVMCIEnv::code_too_large) \
23379
24505bf61633 allow JVMCI compiler to change the compilation policy for a method (JDK-8152311)
Doug Simon <doug.simon@oracle.com>
parents: 22572
diff changeset
117 declare_constant(JVMCIRuntime::none) \
24505bf61633 allow JVMCI compiler to change the compilation policy for a method (JDK-8152311)
Doug Simon <doug.simon@oracle.com>
parents: 22572
diff changeset
118 declare_constant(JVMCIRuntime::by_holder) \
24505bf61633 allow JVMCI compiler to change the compilation policy for a method (JDK-8152311)
Doug Simon <doug.simon@oracle.com>
parents: 22572
diff changeset
119 declare_constant(JVMCIRuntime::by_full_signature) \
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
120 \
23749
d6bd0b9cd0b6 remove uses of setAccessible (JDK-8165434)
Doug Simon <doug.simon@oracle.com>
parents: 23743
diff changeset
121 declare_preprocessor_constant("JVM_ACC_VARARGS", JVM_ACC_VARARGS) \
d6bd0b9cd0b6 remove uses of setAccessible (JDK-8165434)
Doug Simon <doug.simon@oracle.com>
parents: 23743
diff changeset
122 declare_preprocessor_constant("JVM_ACC_BRIDGE", JVM_ACC_BRIDGE) \
d6bd0b9cd0b6 remove uses of setAccessible (JDK-8165434)
Doug Simon <doug.simon@oracle.com>
parents: 23743
diff changeset
123 declare_preprocessor_constant("JVM_ACC_ANNOTATION", JVM_ACC_ANNOTATION) \
d6bd0b9cd0b6 remove uses of setAccessible (JDK-8165434)
Doug Simon <doug.simon@oracle.com>
parents: 23743
diff changeset
124 declare_preprocessor_constant("JVM_ACC_ENUM", JVM_ACC_ENUM) \
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
125 declare_preprocessor_constant("JVM_ACC_SYNTHETIC", JVM_ACC_SYNTHETIC) \
14093
dd783f0ecf17 refactor CompilerToVM interface
twisti
parents: 13818
diff changeset
126 \
22572
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
127 declare_constant(BitData::exception_seen_flag) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
128 declare_constant(BitData::null_seen_flag) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
129 declare_constant(CounterData::count_off) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
130 declare_constant(JumpData::taken_off_set) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
131 declare_constant(JumpData::displacement_off_set) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
132 declare_constant(ReceiverTypeData::nonprofiled_count_off_set) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
133 declare_constant(ReceiverTypeData::receiver_type_row_cell_count) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
134 declare_constant(ReceiverTypeData::receiver0_offset) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
135 declare_constant(ReceiverTypeData::count0_offset) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
136 declare_constant(BranchData::not_taken_off_set) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
137 declare_constant(ArrayData::array_len_off_set) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
138 declare_constant(ArrayData::array_start_off_set) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
139 declare_constant(MultiBranchData::per_case_cell_count) \
c3b49e9d0f48 HotSpotMethodData shouldn't hardcode constants
Tom Rodriguez <tom.rodriguez@oracle.com>
parents: 22460
diff changeset
140 \
14574
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
141 declare_constant(CodeInstaller::VERIFIED_ENTRY) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
142 declare_constant(CodeInstaller::UNVERIFIED_ENTRY) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
143 declare_constant(CodeInstaller::OSR_ENTRY) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
144 declare_constant(CodeInstaller::EXCEPTION_HANDLER_ENTRY) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
145 declare_constant(CodeInstaller::DEOPT_HANDLER_ENTRY) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
146 declare_constant(CodeInstaller::INVOKEINTERFACE) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
147 declare_constant(CodeInstaller::INVOKEVIRTUAL) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
148 declare_constant(CodeInstaller::INVOKESTATIC) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
149 declare_constant(CodeInstaller::INVOKESPECIAL) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
150 declare_constant(CodeInstaller::INLINE_INVOKE) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
151 declare_constant(CodeInstaller::POLL_NEAR) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
152 declare_constant(CodeInstaller::POLL_RETURN_NEAR) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
153 declare_constant(CodeInstaller::POLL_FAR) \
6bab029d6e3a removed com/oracle/graal/hotspot/bridge/Marks.java and replaced with enum
twisti
parents: 14543
diff changeset
154 declare_constant(CodeInstaller::POLL_RETURN_FAR) \
18661
aa4f2e3629ca Added card table PIC support
adlertz
parents: 18403
diff changeset
155 declare_constant(CodeInstaller::CARD_TABLE_SHIFT) \
aa4f2e3629ca Added card table PIC support
adlertz
parents: 18403
diff changeset
156 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
157 declare_constant(CodeInstaller::INVOKE_INVALID) \
15726
668d158f780c Rename HotSpotResolvedObjectType.metaspaceKlass to getMetaspaceKlass
Gilles Duboscq <duboscq@ssw.jku.at>
parents: 15052
diff changeset
158 \
668d158f780c Rename HotSpotResolvedObjectType.metaspaceKlass to getMetaspaceKlass
Gilles Duboscq <duboscq@ssw.jku.at>
parents: 15052
diff changeset
159 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
160
23679
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
161 #define VM_ADDRESSES_JVMCI(declare_address, declare_preprocessor_address, declare_function) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
162 declare_function(SharedRuntime::register_finalizer) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
163 declare_function(SharedRuntime::exception_handler_for_return_address) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
164 declare_function(SharedRuntime::OSR_migration_end) \
23683
daded759b24d Expose SharedRuntime::[fd]rem
Doug Simon <doug.simon@oracle.com>
parents: 23679
diff changeset
165 declare_function(SharedRuntime::frem) \
daded759b24d Expose SharedRuntime::[fd]rem
Doug Simon <doug.simon@oracle.com>
parents: 23679
diff changeset
166 declare_function(SharedRuntime::drem) \
23679
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
167 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
168 declare_function(os::dll_load) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
169 declare_function(os::dll_lookup) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
170 declare_function(os::javaTimeMillis) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
171 declare_function(os::javaTimeNanos) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
172 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
173 declare_function(Deoptimization::fetch_unroll_info) \
23705
1051fbaca88b the client VM build is broken when INCLUDE_JVMCI is defined (JDK-8159888)
Doug Simon <doug.simon@oracle.com>
parents: 23683
diff changeset
174 declare_function(Deoptimization::uncommon_trap) \
23679
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
175 declare_function(Deoptimization::unpack_frames) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
176 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
177 declare_function(JVMCIRuntime::new_instance) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
178 declare_function(JVMCIRuntime::new_array) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
179 declare_function(JVMCIRuntime::new_multi_array) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
180 declare_function(JVMCIRuntime::dynamic_new_array) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
181 declare_function(JVMCIRuntime::dynamic_new_instance) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
182 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
183 declare_function(JVMCIRuntime::thread_is_interrupted) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
184 declare_function(JVMCIRuntime::vm_message) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
185 declare_function(JVMCIRuntime::identity_hash_code) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
186 declare_function(JVMCIRuntime::exception_handler_for_pc) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
187 declare_function(JVMCIRuntime::monitorenter) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
188 declare_function(JVMCIRuntime::monitorexit) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
189 declare_function(JVMCIRuntime::throw_and_post_jvmti_exception) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
190 declare_function(JVMCIRuntime::throw_klass_external_name_exception) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
191 declare_function(JVMCIRuntime::throw_class_cast_exception) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
192 declare_function(JVMCIRuntime::log_primitive) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
193 declare_function(JVMCIRuntime::log_object) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
194 declare_function(JVMCIRuntime::log_printf) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
195 declare_function(JVMCIRuntime::vm_error) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
196 declare_function(JVMCIRuntime::load_and_clear_exception) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
197 declare_function(JVMCIRuntime::write_barrier_pre) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
198 declare_function(JVMCIRuntime::write_barrier_post) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
199 declare_function(JVMCIRuntime::validate_object) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
200 \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
201 declare_function(JVMCIRuntime::test_deoptimize_call_int)
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
202
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
203 #ifdef TARGET_OS_FAMILY_linux
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
204
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
205 #define VM_ADDRESSES_JVMCI_OS(declare_address, declare_preprocessor_address, declare_function) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
206 declare_preprocessor_address("RTLD_DEFAULT", RTLD_DEFAULT)
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
207
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
208 #endif // TARGET_OS_FAMILY_linux
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
209
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
210
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
211 #ifdef TARGET_OS_FAMILY_bsd
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
212
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
213 #define VM_ADDRESSES_JVMCI_OS(declare_address, declare_preprocessor_address, declare_function) \
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
214 declare_preprocessor_address("RTLD_DEFAULT", RTLD_DEFAULT)
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
215
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
216 #endif // TARGET_OS_FAMILY_bsd
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
217
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
218 #ifndef VM_ADDRESSES_JVMCI_OS
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
219 #define VM_ADDRESSES_JVMCI_OS(declare_address, declare_preprocessor_address, declare_function)
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
220 #endif
b5557b757040 fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents: 23379
diff changeset
221
21559
be896a1983c0 recast all Graal native code as JVMCI code (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents: 21545
diff changeset
222 #endif // SHARE_VM_JVMCI_VMSTRUCTS_JVMCI_HPP