Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalJavaAccess.hpp @ 18176:c2270ad35f57
Better construction of data section and data patches.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Mon, 27 Oct 2014 14:07:49 +0100 |
parents | c59612b9d110 |
children | ef357effbda7 |
comparison
equal
deleted
inserted
replaced
18175:cf09e921458f | 18176:c2270ad35f57 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2011, 2014, 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. |
71 start_class(HotSpotCompiledCode) \ | 71 start_class(HotSpotCompiledCode) \ |
72 oop_field(HotSpotCompiledCode, comp, "Lcom/oracle/graal/api/code/CompilationResult;") \ | 72 oop_field(HotSpotCompiledCode, comp, "Lcom/oracle/graal/api/code/CompilationResult;") \ |
73 objArrayOop_field(HotSpotCompiledCode, sites, "[Lcom/oracle/graal/api/code/CompilationResult$Site;") \ | 73 objArrayOop_field(HotSpotCompiledCode, sites, "[Lcom/oracle/graal/api/code/CompilationResult$Site;") \ |
74 objArrayOop_field(HotSpotCompiledCode, exceptionHandlers, "[Lcom/oracle/graal/api/code/CompilationResult$ExceptionHandler;") \ | 74 objArrayOop_field(HotSpotCompiledCode, exceptionHandlers, "[Lcom/oracle/graal/api/code/CompilationResult$ExceptionHandler;") \ |
75 objArrayOop_field(HotSpotCompiledCode, comments, "[Lcom/oracle/graal/hotspot/HotSpotCompiledCode$Comment;") \ | 75 objArrayOop_field(HotSpotCompiledCode, comments, "[Lcom/oracle/graal/hotspot/HotSpotCompiledCode$Comment;") \ |
76 oop_field(HotSpotCompiledCode, dataSection, "Lcom/oracle/graal/hotspot/data/DataSection;") \ | 76 typeArrayOop_field(HotSpotCompiledCode, dataSection, "[B") \ |
77 int_field(HotSpotCompiledCode, dataSectionAlignment) \ | |
78 objArrayOop_field(HotSpotCompiledCode, dataSectionPatches, "[Lcom/oracle/graal/api/code/CompilationResult$DataPatch;") \ | |
77 end_class \ | 79 end_class \ |
78 start_class(HotSpotCompiledCode_Comment) \ | 80 start_class(HotSpotCompiledCode_Comment) \ |
79 oop_field(HotSpotCompiledCode_Comment, text, "Ljava/lang/String;") \ | 81 oop_field(HotSpotCompiledCode_Comment, text, "Ljava/lang/String;") \ |
80 int_field(HotSpotCompiledCode_Comment, pcOffset) \ | 82 int_field(HotSpotCompiledCode_Comment, pcOffset) \ |
81 end_class \ | 83 end_class \ |
88 start_class(HotSpotCompiledRuntimeStub) \ | 90 start_class(HotSpotCompiledRuntimeStub) \ |
89 oop_field(HotSpotCompiledRuntimeStub, stubName, "Ljava/lang/String;") \ | 91 oop_field(HotSpotCompiledRuntimeStub, stubName, "Ljava/lang/String;") \ |
90 end_class \ | 92 end_class \ |
91 start_class(HotSpotForeignCallLinkage) \ | 93 start_class(HotSpotForeignCallLinkage) \ |
92 long_field(HotSpotForeignCallLinkage, address) \ | 94 long_field(HotSpotForeignCallLinkage, address) \ |
93 end_class \ | |
94 start_class(DataSection) \ | |
95 int_field(DataSection, sectionAlignment) \ | |
96 typeArrayOop_field(DataSection, data, "[B") \ | |
97 objArrayOop_field(DataSection, patches, "[Lcom/oracle/graal/api/code/CompilationResult$DataPatch;") \ | |
98 end_class \ | |
99 start_class(DataSectionReference) \ | |
100 int_field(DataSectionReference, offset) \ | |
101 end_class \ | |
102 start_class(MetaspaceData) \ | |
103 long_field(MetaspaceData, value) \ | |
104 oop_field(MetaspaceData, annotation, "Ljava/lang/Object;") \ | |
105 boolean_field(MetaspaceData, compressed) \ | |
106 end_class \ | |
107 start_class(OopData) \ | |
108 oop_field(OopData, object, "Ljava/lang/Object;") \ | |
109 boolean_field(OopData, compressed) \ | |
110 end_class \ | 95 end_class \ |
111 start_class(ExternalCompilationResult) \ | 96 start_class(ExternalCompilationResult) \ |
112 long_field(ExternalCompilationResult, entryPoint) \ | 97 long_field(ExternalCompilationResult, entryPoint) \ |
113 end_class \ | 98 end_class \ |
114 start_class(CompilationResult) \ | 99 start_class(CompilationResult) \ |
146 start_class(CompilationResult_Call) \ | 131 start_class(CompilationResult_Call) \ |
147 oop_field(CompilationResult_Call, target, "Lcom/oracle/graal/api/meta/InvokeTarget;") \ | 132 oop_field(CompilationResult_Call, target, "Lcom/oracle/graal/api/meta/InvokeTarget;") \ |
148 oop_field(CompilationResult_Call, debugInfo, "Lcom/oracle/graal/api/code/DebugInfo;") \ | 133 oop_field(CompilationResult_Call, debugInfo, "Lcom/oracle/graal/api/code/DebugInfo;") \ |
149 end_class \ | 134 end_class \ |
150 start_class(CompilationResult_DataPatch) \ | 135 start_class(CompilationResult_DataPatch) \ |
151 oop_field(CompilationResult_DataPatch, data, "Lcom/oracle/graal/api/code/CompilationResult$Data;") \ | 136 oop_field(CompilationResult_DataPatch, reference, "Lcom/oracle/graal/api/code/CompilationResult$Reference;") \ |
137 end_class \ | |
138 start_class(CompilationResult_ConstantReference) \ | |
139 oop_field(CompilationResult_ConstantReference, constant, "Lcom/oracle/graal/api/meta/VMConstant;") \ | |
140 end_class \ | |
141 start_class(CompilationResult_DataSectionReference) \ | |
142 int_field(CompilationResult_DataSectionReference, offset) \ | |
152 end_class \ | 143 end_class \ |
153 start_class(InfopointReason) \ | 144 start_class(InfopointReason) \ |
154 static_oop_field(InfopointReason, UNKNOWN, "Lcom/oracle/graal/api/code/InfopointReason;") \ | 145 static_oop_field(InfopointReason, UNKNOWN, "Lcom/oracle/graal/api/code/InfopointReason;") \ |
155 static_oop_field(InfopointReason, SAFEPOINT, "Lcom/oracle/graal/api/code/InfopointReason;") \ | 146 static_oop_field(InfopointReason, SAFEPOINT, "Lcom/oracle/graal/api/code/InfopointReason;") \ |
156 static_oop_field(InfopointReason, CALL, "Lcom/oracle/graal/api/code/InfopointReason;") \ | 147 static_oop_field(InfopointReason, CALL, "Lcom/oracle/graal/api/code/InfopointReason;") \ |
212 end_class \ | 203 end_class \ |
213 start_class(HotSpotCompressedNullConstant) \ | 204 start_class(HotSpotCompressedNullConstant) \ |
214 end_class \ | 205 end_class \ |
215 start_class(HotSpotObjectConstant) \ | 206 start_class(HotSpotObjectConstant) \ |
216 oop_field(HotSpotObjectConstant, object, "Ljava/lang/Object;") \ | 207 oop_field(HotSpotObjectConstant, object, "Ljava/lang/Object;") \ |
208 boolean_field(HotSpotObjectConstant, compressed) \ | |
217 end_class \ | 209 end_class \ |
218 start_class(HotSpotMetaspaceConstant) \ | 210 start_class(HotSpotMetaspaceConstant) \ |
219 long_field(HotSpotMetaspaceConstant, primitive) \ | 211 long_field(HotSpotMetaspaceConstant, primitive) \ |
220 oop_field(HotSpotMetaspaceConstant, metaspaceObject, "Ljava/lang/Object;") \ | 212 oop_field(HotSpotMetaspaceConstant, metaspaceObject, "Ljava/lang/Object;") \ |
213 boolean_field(HotSpotMetaspaceConstant, compressed) \ | |
221 end_class \ | 214 end_class \ |
222 start_class(Kind) \ | 215 start_class(Kind) \ |
223 char_field(Kind, typeChar) \ | 216 char_field(Kind, typeChar) \ |
224 static_oop_field(Kind, Boolean, "Lcom/oracle/graal/api/meta/Kind;"); \ | 217 static_oop_field(Kind, Boolean, "Lcom/oracle/graal/api/meta/Kind;"); \ |
225 static_oop_field(Kind, Byte, "Lcom/oracle/graal/api/meta/Kind;"); \ | 218 static_oop_field(Kind, Byte, "Lcom/oracle/graal/api/meta/Kind;"); \ |