Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2595:4a4dab936c1e
new node layout: AccessField
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 15:49:48 +0200 |
parents | 092e628ddd5d |
children | 1c36b17f7ee0 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Thu May 05 15:43:23 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Thu May 05 15:49:48 2011 +0200 @@ -704,7 +704,7 @@ void genGetField(int cpi, RiField field) { // Must copy the state here, because the field holder must still be on the stack. FrameState stateBefore = curState.immutableCopy(bci()); - LoadField load = new LoadField(apop(), field, stateBefore); + LoadField load = new LoadField(apop(), field, stateBefore, graph); appendOptimizedLoadField(field.kind(), load); } @@ -712,7 +712,7 @@ // Must copy the state here, because the field holder must still be on the stack. FrameState stateBefore = curState.immutableCopy(bci()); Value value = pop(field.kind().stackKind()); - appendOptimizedStoreField(new StoreField(apop(), field, value, stateBefore)); + appendOptimizedStoreField(new StoreField(apop(), field, value, stateBefore, graph)); } void genGetStatic(int cpi, RiField field) { @@ -726,7 +726,7 @@ push(constantValue.kind.stackKind(), appendConstant(constantValue)); } else { Value container = genResolveClass(RiType.Representation.StaticFields, holder, field.isResolved(), cpi); - LoadField load = new LoadField(container, field, null); + LoadField load = new LoadField(container, field, null, graph); appendOptimizedLoadField(field.kind(), load); } } @@ -735,7 +735,7 @@ RiType holder = field.holder(); Value container = genResolveClass(RiType.Representation.StaticFields, holder, field.isResolved(), cpi); Value value = pop(field.kind().stackKind()); - StoreField store = new StoreField(container, field, value, null); + StoreField store = new StoreField(container, field, value, null, graph); appendOptimizedStoreField(store); }