src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/memory/AbstractWriteNode.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/memory/AbstractWriteNode.java Mon Mar 20 17:40:56 2017
--- new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/memory/AbstractWriteNode.java Mon Mar 20 17:40:56 2017
*** 44,55 ****
--- 44,53 ----
public static final NodeClass<AbstractWriteNode> TYPE = NodeClass.create(AbstractWriteNode.class);
@Input ValueNode value;
@OptionalInput(InputType.State) FrameState stateAfter;
@OptionalInput(InputType.Memory) Node lastLocationAccess;
protected final boolean initialization;
@Override
public FrameState stateAfter() {
return stateAfter;
}
*** 67,100 ****
--- 65,77 ----
public ValueNode value() {
return value;
}
/**
* Returns whether this write is the initialization of the written location. If it is true, the
* old value of the memory location is either uninitialized or zero. If it is false, the memory
* location is guaranteed to contain a valid value or zero.
*/
public boolean isInitialization() {
return initialization;
}
protected AbstractWriteNode(NodeClass<? extends AbstractWriteNode> c, AddressNode address, LocationIdentity location, ValueNode value, BarrierType barrierType) {
this(c, address, location, value, barrierType, false);
}
protected AbstractWriteNode(NodeClass<? extends AbstractWriteNode> c, AddressNode address, LocationIdentity location, ValueNode value, BarrierType barrierType, boolean initialization) {
super(c, address, location, StampFactory.forVoid(), barrierType);
this.value = value;
this.initialization = initialization;
}
protected AbstractWriteNode(NodeClass<? extends AbstractWriteNode> c, AddressNode address, LocationIdentity location, ValueNode value, BarrierType barrierType, GuardingNode guard,
boolean initialization) {
super(c, address, location, StampFactory.forVoid(), guard, barrierType, false, null);
this.value = value;
this.initialization = initialization;
}
@Override
public boolean isAllowedUsageType(InputType type) {
return (type == InputType.Guard && getNullCheck()) ? true : super.isAllowedUsageType(type);
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/memory/AbstractWriteNode.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File