Mercurial > hg > truffle
comparison graal/Runtime/src/com/sun/hotspot/c1x/VMEntries.java @ 2297:099e697d8934
Renaming c1x4hotspotsrc => graal and HotSpotVM => Runtime
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 22 Apr 2011 15:08:53 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2296:34354e2e40a3 | 2297:099e697d8934 |
---|---|
1 /* | |
2 * Copyright (c) 2010 Sun Microsystems, Inc. All rights reserved. | |
3 * | |
4 * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product | |
5 * that is described in this document. In particular, and without limitation, these intellectual property | |
6 * rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or | |
7 * more additional patents or pending patent applications in the U.S. and in other countries. | |
8 * | |
9 * U.S. Government Rights - Commercial software. Government users are subject to the Sun | |
10 * Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its | |
11 * supplements. | |
12 * | |
13 * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or | |
14 * registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks | |
15 * are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the | |
16 * U.S. and other countries. | |
17 * | |
18 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open | |
19 * Company, Ltd. | |
20 */ | |
21 | |
22 package com.sun.hotspot.c1x; | |
23 | |
24 import com.sun.cri.ci.*; | |
25 import com.sun.cri.ri.*; | |
26 | |
27 /** | |
28 * Entries into the HotSpot VM from Java code. | |
29 * | |
30 * @author Thomas Wuerthinger, Lukas Stadler | |
31 */ | |
32 public interface VMEntries { | |
33 | |
34 // Checkstyle: stop | |
35 | |
36 byte[] RiMethod_code(long vmId); | |
37 | |
38 int RiMethod_maxStackSize(long vmId); | |
39 | |
40 int RiMethod_maxLocals(long vmId); | |
41 | |
42 RiType RiMethod_holder(long vmId); | |
43 | |
44 String RiMethod_signature(long vmId); | |
45 | |
46 int RiMethod_accessFlags(long vmId); | |
47 | |
48 RiType RiSignature_lookupType(String returnType, HotSpotTypeResolved accessingClass); | |
49 | |
50 Object RiConstantPool_lookupConstant(long vmId, int cpi); | |
51 | |
52 RiMethod RiConstantPool_lookupMethod(long vmId, int cpi, byte byteCode); | |
53 | |
54 RiSignature RiConstantPool_lookupSignature(long vmId, int cpi); | |
55 | |
56 RiType RiConstantPool_lookupType(long vmId, int cpi); | |
57 | |
58 RiField RiConstantPool_lookupField(long vmId, int cpi, byte byteCode); | |
59 | |
60 RiConstantPool RiType_constantPool(HotSpotTypeResolved klass); | |
61 | |
62 void installMethod(HotSpotTargetMethod targetMethod); | |
63 | |
64 long installStub(HotSpotTargetMethod targetMethod); | |
65 | |
66 HotSpotVMConfig getConfiguration(); | |
67 | |
68 RiExceptionHandler[] RiMethod_exceptionHandlers(long vmId); | |
69 | |
70 RiMethod RiType_resolveMethodImpl(HotSpotTypeResolved klass, String name, String signature); | |
71 | |
72 boolean RiType_isSubtypeOf(HotSpotTypeResolved klass, RiType other); | |
73 | |
74 RiType getPrimitiveArrayType(CiKind kind); | |
75 | |
76 RiType RiType_arrayOf(HotSpotTypeResolved klass); | |
77 | |
78 RiType RiType_componentType(HotSpotTypeResolved klass); | |
79 | |
80 RiType getType(Class<?> javaClass); | |
81 | |
82 boolean RiMethod_hasBalancedMonitors(long vmId); | |
83 | |
84 RiMethod RiMethod_uniqueConcreteMethod(long vmId); | |
85 | |
86 void recordBailout(String reason); | |
87 | |
88 RiType RiType_uniqueConcreteSubtype(HotSpotTypeResolved hotSpotTypeResolved); | |
89 | |
90 RiType RiType_superType(HotSpotTypeResolved hotSpotTypeResolved); | |
91 | |
92 int getArrayLength(CiConstant array); | |
93 | |
94 boolean compareConstantObjects(CiConstant x, CiConstant y); | |
95 | |
96 RiType getRiType(CiConstant constant); | |
97 | |
98 // Checkstyle: resume | |
99 } |