Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.java/src/com/oracle/graal/java/HIRFrameStateBuilder.java @ 15311:820c6d353358
added ModifiersProvider as superinterface for ResolvedJava[Method|Field|Type] and implemented all checks against modifiers as default methods
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Apr 2014 12:38:05 +0200 |
parents | 882f4cb7cfcf |
children | 2682747f7108 |
comparison
equal
deleted
inserted
replaced
15310:dc2dd913c47e | 15311:820c6d353358 |
---|---|
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.graal.java; | 23 package com.oracle.graal.java; |
24 | 24 |
25 import static com.oracle.graal.graph.iterators.NodePredicates.*; | 25 import static com.oracle.graal.graph.iterators.NodePredicates.*; |
26 import static java.lang.reflect.Modifier.*; | |
27 | |
28 import java.util.*; | 26 import java.util.*; |
29 | 27 |
30 import com.oracle.graal.api.code.*; | 28 import com.oracle.graal.api.code.*; |
31 import com.oracle.graal.api.meta.*; | 29 import com.oracle.graal.api.meta.*; |
32 import com.oracle.graal.compiler.common.type.*; | 30 import com.oracle.graal.compiler.common.type.*; |
53 this.monitorIds = EMPTY_MONITOR_ARRAY; | 51 this.monitorIds = EMPTY_MONITOR_ARRAY; |
54 this.graph = graph; | 52 this.graph = graph; |
55 | 53 |
56 int javaIndex = 0; | 54 int javaIndex = 0; |
57 int index = 0; | 55 int index = 0; |
58 if (!isStatic(method.getModifiers())) { | 56 if (!method.isStatic()) { |
59 // add the receiver | 57 // add the receiver |
60 ParameterNode receiver = graph.unique(new ParameterNode(javaIndex, StampFactory.declaredNonNull(method.getDeclaringClass()))); | 58 ParameterNode receiver = graph.unique(new ParameterNode(javaIndex, StampFactory.declaredNonNull(method.getDeclaringClass()))); |
61 storeLocal(javaIndex, receiver); | 59 storeLocal(javaIndex, receiver); |
62 javaIndex = 1; | 60 javaIndex = 1; |
63 index = 1; | 61 index = 1; |