1/*
2 * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation.
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#ifndef SHARE_JVMCI_VMSYMBOLS_JVMCI_HPP
25#define SHARE_JVMCI_VMSYMBOLS_JVMCI_HPP
26
27
28#if !INCLUDE_JVMCI
29#define JVMCI_VM_SYMBOLS_DO(template, do_alias)
30#else
31#define JVMCI_VM_SYMBOLS_DO(template, do_alias) \
32 template(jdk_vm_ci_services_Services, "jdk/vm/ci/services/Services") \
33 template(jdk_vm_ci_runtime_JVMCI, "jdk/vm/ci/runtime/JVMCI") \
34 template(jdk_vm_ci_hotspot_HotSpotCompiledCode, "jdk/vm/ci/hotspot/HotSpotCompiledCode") \
35 template(jdk_vm_ci_hotspot_HotSpotCompiledCode_Comment, "jdk/vm/ci/hotspot/HotSpotCompiledCode$Comment") \
36 template(jdk_vm_ci_hotspot_HotSpotCompiledNmethod, "jdk/vm/ci/hotspot/HotSpotCompiledNmethod") \
37 template(jdk_vm_ci_hotspot_HotSpotForeignCallTarget, "jdk/vm/ci/hotspot/HotSpotForeignCallTarget") \
38 template(jdk_vm_ci_hotspot_HotSpotReferenceMap, "jdk/vm/ci/hotspot/HotSpotReferenceMap") \
39 template(jdk_vm_ci_hotspot_CompilerToVM, "jdk/vm/ci/hotspot/CompilerToVM") \
40 template(jdk_vm_ci_hotspot_HotSpotInstalledCode, "jdk/vm/ci/hotspot/HotSpotInstalledCode") \
41 template(jdk_vm_ci_hotspot_HotSpotNmethod, "jdk/vm/ci/hotspot/HotSpotNmethod") \
42 template(jdk_vm_ci_hotspot_HotSpotResolvedJavaMethodImpl, "jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl") \
43 template(jdk_vm_ci_hotspot_HotSpotResolvedObjectTypeImpl, "jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl") \
44 template(jdk_vm_ci_hotspot_HotSpotResolvedPrimitiveType, "jdk/vm/ci/hotspot/HotSpotResolvedPrimitiveType") \
45 template(jdk_vm_ci_hotspot_HotSpotResolvedJavaFieldImpl, "jdk/vm/ci/hotspot/HotSpotResolvedJavaFieldImpl") \
46 template(jdk_vm_ci_hotspot_HotSpotCompressedNullConstant, "jdk/vm/ci/hotspot/HotSpotCompressedNullConstant") \
47 template(jdk_vm_ci_hotspot_HotSpotObjectConstantImpl, "jdk/vm/ci/hotspot/HotSpotObjectConstantImpl") \
48 template(jdk_vm_ci_hotspot_DirectHotSpotObjectConstantImpl, "jdk/vm/ci/hotspot/DirectHotSpotObjectConstantImpl") \
49 template(jdk_vm_ci_hotspot_IndirectHotSpotObjectConstantImpl, "jdk/vm/ci/hotspot/IndirectHotSpotObjectConstantImpl") \
50 template(jdk_vm_ci_hotspot_HotSpotMetaspaceConstantImpl, "jdk/vm/ci/hotspot/HotSpotMetaspaceConstantImpl") \
51 template(jdk_vm_ci_hotspot_HotSpotSentinelConstant, "jdk/vm/ci/hotspot/HotSpotSentinelConstant") \
52 template(jdk_vm_ci_hotspot_HotSpotStackFrameReference, "jdk/vm/ci/hotspot/HotSpotStackFrameReference") \
53 template(jdk_vm_ci_hotspot_HotSpotMetaData, "jdk/vm/ci/hotspot/HotSpotMetaData") \
54 template(jdk_vm_ci_hotspot_HotSpotConstantPool, "jdk/vm/ci/hotspot/HotSpotConstantPool") \
55 template(jdk_vm_ci_hotspot_HotSpotJVMCIRuntime, "jdk/vm/ci/hotspot/HotSpotJVMCIRuntime") \
56 template(jdk_vm_ci_hotspot_HotSpotSpeculationLog, "jdk/vm/ci/hotspot/HotSpotSpeculationLog") \
57 template(jdk_vm_ci_hotspot_HotSpotCompilationRequestResult, "jdk/vm/ci/hotspot/HotSpotCompilationRequestResult") \
58 template(jdk_vm_ci_hotspot_VMField, "jdk/vm/ci/hotspot/VMField") \
59 template(jdk_vm_ci_hotspot_VMFlag, "jdk/vm/ci/hotspot/VMFlag") \
60 template(jdk_vm_ci_hotspot_VMIntrinsicMethod, "jdk/vm/ci/hotspot/VMIntrinsicMethod") \
61 template(jdk_vm_ci_meta_ResolvedJavaMethod, "jdk/vm/ci/meta/ResolvedJavaMethod") \
62 template(jdk_vm_ci_meta_JavaConstant, "jdk/vm/ci/meta/JavaConstant") \
63 template(jdk_vm_ci_meta_PrimitiveConstant, "jdk/vm/ci/meta/PrimitiveConstant") \
64 template(jdk_vm_ci_meta_RawConstant, "jdk/vm/ci/meta/RawConstant") \
65 template(jdk_vm_ci_meta_NullConstant, "jdk/vm/ci/meta/NullConstant") \
66 template(jdk_vm_ci_meta_ExceptionHandler, "jdk/vm/ci/meta/ExceptionHandler") \
67 template(jdk_vm_ci_meta_JavaKind, "jdk/vm/ci/meta/JavaKind") \
68 template(jdk_vm_ci_meta_ValueKind, "jdk/vm/ci/meta/ValueKind") \
69 template(jdk_vm_ci_meta_Value, "jdk/vm/ci/meta/Value") \
70 template(jdk_vm_ci_meta_Assumptions_ConcreteSubtype, "jdk/vm/ci/meta/Assumptions$ConcreteSubtype") \
71 template(jdk_vm_ci_meta_Assumptions_LeafType, "jdk/vm/ci/meta/Assumptions$LeafType") \
72 template(jdk_vm_ci_meta_Assumptions_NoFinalizableSubclass, "jdk/vm/ci/meta/Assumptions$NoFinalizableSubclass") \
73 template(jdk_vm_ci_meta_Assumptions_ConcreteMethod, "jdk/vm/ci/meta/Assumptions$ConcreteMethod") \
74 template(jdk_vm_ci_meta_Assumptions_CallSiteTargetValue, "jdk/vm/ci/meta/Assumptions$CallSiteTargetValue") \
75 template(jdk_vm_ci_code_Architecture, "jdk/vm/ci/code/Architecture") \
76 template(jdk_vm_ci_code_BytecodeFrame, "jdk/vm/ci/code/BytecodeFrame") \
77 template(jdk_vm_ci_code_BytecodePosition, "jdk/vm/ci/code/BytecodePosition") \
78 template(jdk_vm_ci_code_DebugInfo, "jdk/vm/ci/code/DebugInfo") \
79 template(jdk_vm_ci_code_InstalledCode, "jdk/vm/ci/code/InstalledCode") \
80 template(jdk_vm_ci_code_Location, "jdk/vm/ci/code/Location") \
81 template(jdk_vm_ci_code_Register, "jdk/vm/ci/code/Register") \
82 template(jdk_vm_ci_code_RegisterValue, "jdk/vm/ci/code/RegisterValue") \
83 template(jdk_vm_ci_code_StackSlot, "jdk/vm/ci/code/StackSlot") \
84 template(jdk_vm_ci_code_StackLockValue, "jdk/vm/ci/code/StackLockValue") \
85 template(jdk_vm_ci_code_TargetDescription, "jdk/vm/ci/code/TargetDescription") \
86 template(jdk_vm_ci_code_VirtualObject, "jdk/vm/ci/code/VirtualObject") \
87 template(jdk_vm_ci_code_RegisterSaveLayout, "jdk/vm/ci/code/RegisterSaveLayout") \
88 template(jdk_vm_ci_code_InvalidInstalledCodeException, "jdk/vm/ci/code/InvalidInstalledCodeException") \
89 template(jdk_vm_ci_code_site_Call, "jdk/vm/ci/code/site/Call") \
90 template(jdk_vm_ci_code_site_ConstantReference, "jdk/vm/ci/code/site/ConstantReference") \
91 template(jdk_vm_ci_code_site_DataPatch, "jdk/vm/ci/code/site/DataPatch") \
92 template(jdk_vm_ci_code_site_DataSectionReference, "jdk/vm/ci/code/site/DataSectionReference") \
93 template(jdk_vm_ci_code_site_ExceptionHandler, "jdk/vm/ci/code/site/ExceptionHandler") \
94 template(jdk_vm_ci_code_site_Mark, "jdk/vm/ci/code/site/Mark") \
95 template(jdk_vm_ci_code_site_Infopoint, "jdk/vm/ci/code/site/Infopoint") \
96 template(jdk_vm_ci_code_stack_InspectedFrameVisitor, "jdk/vm/ci/code/stack/InspectedFrameVisitor") \
97 template(jdk_vm_ci_code_site_Site, "jdk/vm/ci/code/site/Site") \
98 template(jdk_vm_ci_code_site_InfopointReason, "jdk/vm/ci/code/site/InfopointReason") \
99 template(jdk_vm_ci_common_JVMCIError, "jdk/vm/ci/common/JVMCIError") \
100 \
101 template(visitFrame_name, "visitFrame") \
102 template(visitFrame_signature, "(Ljdk/vm/ci/code/stack/InspectedFrame;)Ljava/lang/Object;") \
103 template(compileMethod_name, "compileMethod") \
104 template(compileMethod_signature, "(Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethod;IJI)Ljdk/vm/ci/hotspot/HotSpotCompilationRequestResult;") \
105 template(encodeThrowable_name, "encodeThrowable") \
106 template(encodeThrowable_signature, "(Ljava/lang/Throwable;)Ljava/lang/String;") \
107 template(decodeThrowable_name, "decodeThrowable") \
108 template(decodeThrowable_signature, "(Ljava/lang/String;)Ljava/lang/Throwable;") \
109 template(fromMetaspace_name, "fromMetaspace") \
110 template(method_fromMetaspace_signature, "(J)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethod;") \
111 template(constantPool_fromMetaspace_signature, "(J)Ljdk/vm/ci/hotspot/HotSpotConstantPool;") \
112 template(klass_fromMetaspace_signature, "(JLjava/lang/String;)Ljdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl;") \
113 template(primitive_fromMetaspace_signature, "(Ljdk/vm/ci/hotspot/HotSpotObjectConstantImpl;C)Ljdk/vm/ci/hotspot/HotSpotResolvedPrimitiveType;") \
114 template(getRuntime_name, "getRuntime") \
115 template(getRuntime_signature, "()Ljdk/vm/ci/runtime/JVMCIRuntime;") \
116 template(initializeRuntime_name, "initializeRuntime") \
117 do_alias(initializeRuntime_signature, getRuntime_signature) \
118 template(runtime_name, "runtime") \
119 template(runtime_signature, "()Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;") \
120 template(getCompiler_name, "getCompiler") \
121 template(getCompiler_signature, "()Ljdk/vm/ci/runtime/JVMCICompiler;") \
122 template(callToString_name, "callToString") \
123 template(callToString_signature, "(Ljava/lang/Object;)Ljava/lang/String;") \
124 template(getName_name, "getName") \
125 template(bootstrapFinished_name, "bootstrapFinished") \
126 template(forTypeChar_name, "forTypeChar") \
127 template(forTypeChar_signature, "(CJ)Ljdk/vm/ci/meta/PrimitiveConstant;") \
128 template(forFloat_name, "forFloat") \
129 template(forFloat_signature, "(F)Ljdk/vm/ci/meta/PrimitiveConstant;") \
130 template(forDouble_name, "forDouble") \
131 template(forDouble_signature, "(D)Ljdk/vm/ci/meta/PrimitiveConstant;") \
132 template(method_string_bool_long_signature, "(Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl;Ljava/lang/String;ZJ)V") \
133 template(initializeSavedProperties_name, "initializeSavedProperties") \
134
135#endif
136
137#endif // SHARE_JVMCI_VMSYMBOLS_JVMCI_HPP
138