comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaMethod.java @ 7037:dd81042f4eb1

added unit tests for ResolvedJavaType replaced some CompilerToVM methods used by HotSpotResolvedJavaType with pure Java code
author Doug Simon <doug.simon@oracle.com>
date Tue, 27 Nov 2012 11:21:48 +0100
parents b618f7c63d17
children 014727292ae0
comparison
equal deleted inserted replaced
7036:8c4b757c2eb9 7037:dd81042f4eb1
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.hotspot.meta; 23 package com.oracle.graal.hotspot.meta;
24 24
25 import static com.oracle.graal.graph.FieldIntrospection.*; 25 import static com.oracle.graal.graph.FieldIntrospection.*;
26 import static com.oracle.graal.hotspot.HotSpotGraalRuntime.*;
26 27
27 import java.lang.annotation.*; 28 import java.lang.annotation.*;
28 import java.lang.reflect.*; 29 import java.lang.reflect.*;
29 import java.util.*; 30 import java.util.*;
30 import java.util.concurrent.*; 31 import java.util.concurrent.*;
197 @Override 198 @Override
198 public ProfilingInfo getProfilingInfo() { 199 public ProfilingInfo getProfilingInfo() {
199 ProfilingInfo info; 200 ProfilingInfo info;
200 201
201 if (GraalOptions.UseProfilingInformation && methodData == null) { 202 if (GraalOptions.UseProfilingInformation && methodData == null) {
202 long metaspaceMethodData = unsafe.getLong(null, metaspaceMethod + HotSpotGraalRuntime.getInstance().getConfig().methodDataOffset); 203 long metaspaceMethodData = unsafeReadWord(metaspaceMethod + HotSpotGraalRuntime.getInstance().getConfig().methodDataOffset);
203 if (metaspaceMethodData != 0) { 204 if (metaspaceMethodData != 0) {
204 methodData = new HotSpotMethodData(metaspaceMethodData); 205 methodData = new HotSpotMethodData(metaspaceMethodData);
205 } 206 }
206 } 207 }
207 208