Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/xir/RiXirGenerator.java @ 5541:b4c406861c33
More renamings to drop Ri* prefix completely. Deleted graph.BitMap class and replaced with java.util.BitSet.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 09 Jun 2012 16:52:12 +0200 |
parents | a891c53a295b |
children | a1db0ea58b53 |
comparison
equal
deleted
inserted
replaced
5540:a891c53a295b | 5541:b4c406861c33 |
---|---|
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.max.cri.xir; | 23 package com.oracle.max.cri.xir; |
24 | 24 |
25 import com.oracle.graal.api.meta.*; | 25 import com.oracle.graal.api.meta.*; |
26 import com.oracle.graal.api.meta.RiType.*; | 26 import com.oracle.graal.api.meta.JavaType.*; |
27 | 27 |
28 /** | 28 /** |
29 * Represents the interface through which the compiler requests the XIR for a given bytecode from the runtime system. | 29 * Represents the interface through which the compiler requests the XIR for a given bytecode from the runtime system. |
30 */ | 30 */ |
31 public interface RiXirGenerator { | 31 public interface RiXirGenerator { |
32 | 32 |
33 XirSnippet genInvokeInterface(XirSite site, XirArgument receiver, RiMethod method); | 33 XirSnippet genInvokeInterface(XirSite site, XirArgument receiver, JavaMethod method); |
34 | 34 |
35 XirSnippet genInvokeVirtual(XirSite site, XirArgument receiver, RiMethod method, boolean megamorph); | 35 XirSnippet genInvokeVirtual(XirSite site, XirArgument receiver, JavaMethod method, boolean megamorph); |
36 | 36 |
37 XirSnippet genInvokeSpecial(XirSite site, XirArgument receiver, RiMethod method); | 37 XirSnippet genInvokeSpecial(XirSite site, XirArgument receiver, JavaMethod method); |
38 | 38 |
39 XirSnippet genInvokeStatic(XirSite site, RiMethod method); | 39 XirSnippet genInvokeStatic(XirSite site, JavaMethod method); |
40 | 40 |
41 XirSnippet genMonitorEnter(XirSite site, XirArgument receiver, XirArgument lockAddress); | 41 XirSnippet genMonitorEnter(XirSite site, XirArgument receiver, XirArgument lockAddress); |
42 | 42 |
43 XirSnippet genMonitorExit(XirSite site, XirArgument receiver, XirArgument lockAddress); | 43 XirSnippet genMonitorExit(XirSite site, XirArgument receiver, XirArgument lockAddress); |
44 | 44 |
45 XirSnippet genNewInstance(XirSite site, RiType type); | 45 XirSnippet genNewInstance(XirSite site, JavaType type); |
46 | 46 |
47 XirSnippet genNewArray(XirSite site, XirArgument length, Kind elementKind, RiType componentType, RiType arrayType); | 47 XirSnippet genNewArray(XirSite site, XirArgument length, Kind elementKind, JavaType componentType, JavaType arrayType); |
48 | 48 |
49 XirSnippet genNewMultiArray(XirSite site, XirArgument[] lengths, RiType type); | 49 XirSnippet genNewMultiArray(XirSite site, XirArgument[] lengths, JavaType type); |
50 | 50 |
51 XirSnippet genCheckCast(XirSite site, XirArgument receiver, XirArgument hub, RiResolvedType type, RiTypeProfile profile); | 51 XirSnippet genCheckCast(XirSite site, XirArgument receiver, XirArgument hub, ResolvedJavaType type, JavaTypeProfile profile); |
52 | 52 |
53 XirSnippet genInstanceOf(XirSite site, XirArgument receiver, XirArgument hub, RiResolvedType type, RiTypeProfile profile); | 53 XirSnippet genInstanceOf(XirSite site, XirArgument receiver, XirArgument hub, ResolvedJavaType type, JavaTypeProfile profile); |
54 | 54 |
55 XirSnippet genMaterializeInstanceOf(XirSite site, XirArgument receiver, XirArgument hub, XirArgument trueValue, XirArgument falseValue, RiResolvedType type, RiTypeProfile profile); | 55 XirSnippet genMaterializeInstanceOf(XirSite site, XirArgument receiver, XirArgument hub, XirArgument trueValue, XirArgument falseValue, ResolvedJavaType type, JavaTypeProfile profile); |
56 | 56 |
57 /** | 57 /** |
58 * Generates code that checks that the {@linkplain Representation#ObjectHub hub} of | 58 * Generates code that checks that the {@linkplain Representation#ObjectHub hub} of |
59 * an object is identical to a given hub constant. In pseudo code: | 59 * an object is identical to a given hub constant. In pseudo code: |
60 * <pre> | 60 * <pre> |
62 * jump(falseSuccessor) | 62 * jump(falseSuccessor) |
63 * } | 63 * } |
64 * </pre> | 64 * </pre> |
65 * This snippet should only be used when the object is guaranteed not to be null. | 65 * This snippet should only be used when the object is guaranteed not to be null. |
66 */ | 66 */ |
67 XirSnippet genTypeBranch(XirSite site, XirArgument thisHub, XirArgument otherHub, RiType type); | 67 XirSnippet genTypeBranch(XirSite site, XirArgument thisHub, XirArgument otherHub, JavaType type); |
68 | 68 |
69 /** | 69 /** |
70 * Initializes the XIR generator for the given XIR assembler. | 70 * Initializes the XIR generator for the given XIR assembler. |
71 * | 71 * |
72 * @param asm the XIR assembler | 72 * @param asm the XIR assembler |