Mercurial > hg > truffle
comparison graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/DirectObjectStoreNode.java @ 9792:06dc2d2324d6
pulled LocationIdentity into a top level class and moved it to the api.meta project
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 21 May 2013 21:46:26 +0200 |
parents | 19c5a07c7843 |
children | b4f12c603be5 |
comparison
equal
deleted
inserted
replaced
9783:5402504894fe | 9792:06dc2d2324d6 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.graal.replacements.nodes; | 23 package com.oracle.graal.replacements.nodes; |
24 | 24 |
25 import com.oracle.graal.api.meta.*; | |
25 import com.oracle.graal.nodes.*; | 26 import com.oracle.graal.nodes.*; |
26 import com.oracle.graal.nodes.extended.*; | 27 import com.oracle.graal.nodes.extended.*; |
27 import com.oracle.graal.nodes.extended.WriteNode.*; | 28 import com.oracle.graal.nodes.extended.WriteNode.*; |
28 import com.oracle.graal.nodes.spi.*; | 29 import com.oracle.graal.nodes.spi.*; |
29 import com.oracle.graal.nodes.type.*; | 30 import com.oracle.graal.nodes.type.*; |
60 @NodeIntrinsic | 61 @NodeIntrinsic |
61 public static native void storeInt(Object obj, @ConstantNodeParameter int displacement, long offset, int value); | 62 public static native void storeInt(Object obj, @ConstantNodeParameter int displacement, long offset, int value); |
62 | 63 |
63 @Override | 64 @Override |
64 public void lower(LoweringTool tool, LoweringType loweringType) { | 65 public void lower(LoweringTool tool, LoweringType loweringType) { |
65 IndexedLocationNode location = IndexedLocationNode.create(LocationNode.ANY_LOCATION, value.kind(), displacement, offset, graph(), 1); | 66 IndexedLocationNode location = IndexedLocationNode.create(LocationIdentity.ANY_LOCATION, value.kind(), displacement, offset, graph(), 1); |
66 WriteNode write = graph().add(new WriteNode(object, value, location, WriteBarrierType.NONE)); | 67 WriteNode write = graph().add(new WriteNode(object, value, location, WriteBarrierType.NONE)); |
67 graph().replaceFixedWithFixed(this, write); | 68 graph().replaceFixedWithFixed(this, write); |
68 } | 69 } |
69 } | 70 } |