comparison jvmci/jdk.vm.ci.code/src/jdk/vm/ci/code/StackLockValue.java @ 22689:f48b657b550d

Remove unused class VirtualStackSlot.
author Roland Schatz <roland.schatz@oracle.com>
date Fri, 16 Oct 2015 13:44:47 +0200
parents 1bbd4a7c274b
children
comparison
equal deleted inserted replaced
22688:ef7d87db544a 22689:f48b657b550d
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 jdk.vm.ci.code; 23 package jdk.vm.ci.code;
24 24
25 import static jdk.vm.ci.code.ValueUtil.isStackSlot; 25 import jdk.vm.ci.meta.AllocatableValue;
26 import static jdk.vm.ci.code.ValueUtil.isVirtualStackSlot;
27 import jdk.vm.ci.meta.JavaValue; 26 import jdk.vm.ci.meta.JavaValue;
28 import jdk.vm.ci.meta.Value; 27 import jdk.vm.ci.meta.Value;
29 28
30 /** 29 /**
31 * Represents lock information in the debug information. 30 * Represents lock information in the debug information.
32 */ 31 */
33 public final class StackLockValue implements JavaValue { 32 public final class StackLockValue implements JavaValue {
34 33
35 private JavaValue owner; 34 private JavaValue owner;
36 private StackSlotValue slot; 35 private AllocatableValue slot;
37 private final boolean eliminated; 36 private final boolean eliminated;
38 37
39 public StackLockValue(JavaValue object, StackSlotValue slot, boolean eliminated) { 38 public StackLockValue(JavaValue object, AllocatableValue slot, boolean eliminated) {
40 this.owner = object; 39 this.owner = object;
41 this.slot = slot; 40 this.slot = slot;
42 this.eliminated = eliminated; 41 this.eliminated = eliminated;
43 } 42 }
44 43
80 return super.equals(obj) && eliminated == other.eliminated && owner.equals(other.owner) && slot.equals(other.slot); 79 return super.equals(obj) && eliminated == other.eliminated && owner.equals(other.owner) && slot.equals(other.slot);
81 } 80 }
82 return false; 81 return false;
83 } 82 }
84 83
85 public void setSlot(StackSlotValue stackSlot) { 84 public void setSlot(AllocatableValue stackSlot) {
86 assert slot == null || (isVirtualStackSlot(slot) && (slot.equals(stackSlot) || isStackSlot(stackSlot))) : String.format("Can not set slot for %s to %s", this, stackSlot);
87 slot = stackSlot; 85 slot = stackSlot;
88 } 86 }
89 } 87 }