src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/extended/RawStoreNode.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
132 } |
132 } |
133 } |
133 } |
134 |
134 |
135 @Override |
135 @Override |
136 protected ValueNode cloneAsFieldAccess(Assumptions assumptions, ResolvedJavaField field, boolean volatileAccess) { |
136 protected ValueNode cloneAsFieldAccess(Assumptions assumptions, ResolvedJavaField field, boolean volatileAccess) { |
137 return new StoreFieldNode(object(), field, value(), stateAfter(), volatileAccess); |
137 return new StoreFieldNode(field.isStatic() ? null : object(), field, value(), stateAfter(), volatileAccess); |
138 } |
138 } |
139 |
139 |
140 @Override |
140 @Override |
141 protected ValueNode cloneAsArrayAccess(ValueNode location, LocationIdentity identity) { |
141 protected ValueNode cloneAsArrayAccess(ValueNode location, LocationIdentity identity) { |
142 return new RawStoreNode(object(), location, value, accessKind(), identity, needsBarrier, stateAfter(), isAnyLocationForced()); |
142 return new RawStoreNode(object(), location, value, accessKind(), identity, needsBarrier, stateAfter(), isAnyLocationForced()); |
143 } |
143 } |
144 |
144 |
145 public FrameState getState() { |
145 public FrameState getState() { |
146 return stateAfter; |
146 return stateAfter; |
147 } |
147 } |
|
148 |
|
149 @Override |
|
150 public LocationIdentity getKilledLocationIdentity() { |
|
151 return getLocationIdentity(); |
|
152 } |
148 } |
153 } |