comparison graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64FrameMap.java @ 22604:b00cc0475f31

Update jvmci import: Refactoring: Rename Kind to JavaKind.
author Roland Schatz <roland.schatz@oracle.com>
date Tue, 08 Sep 2015 19:57:39 +0200
parents aacbf2e9aa42
children 05183a084a08
comparison
equal deleted inserted replaced
22603:6d339ba0edc5 22604:b00cc0475f31
116 * For non-leaf methods, RBP is preserved in the special stack slot required by the HotSpot 116 * For non-leaf methods, RBP is preserved in the special stack slot required by the HotSpot
117 * runtime for walking/inspecting frames of such methods. 117 * runtime for walking/inspecting frames of such methods.
118 */ 118 */
119 StackSlot allocateRBPSpillSlot() { 119 StackSlot allocateRBPSpillSlot() {
120 assert spillSize == initialSpillSize : "RBP spill slot must be the first allocated stack slots"; 120 assert spillSize == initialSpillSize : "RBP spill slot must be the first allocated stack slots";
121 rbpSpillSlot = allocateSpillSlot(LIRKind.value(Kind.Long)); 121 rbpSpillSlot = allocateSpillSlot(LIRKind.value(JavaKind.Long));
122 assert asStackSlot(rbpSpillSlot).getRawOffset() == -16 : asStackSlot(rbpSpillSlot).getRawOffset(); 122 assert asStackSlot(rbpSpillSlot).getRawOffset() == -16 : asStackSlot(rbpSpillSlot).getRawOffset();
123 return rbpSpillSlot; 123 return rbpSpillSlot;
124 } 124 }
125 125
126 void freeRBPSpillSlot() { 126 void freeRBPSpillSlot() {
127 int size = spillSlotSize(LIRKind.value(Kind.Long)); 127 int size = spillSlotSize(LIRKind.value(JavaKind.Long));
128 assert spillSize == NumUtil.roundUp(initialSpillSize + size, size) : "RBP spill slot can not be freed after allocation other stack slots"; 128 assert spillSize == NumUtil.roundUp(initialSpillSize + size, size) : "RBP spill slot can not be freed after allocation other stack slots";
129 spillSize = initialSpillSize; 129 spillSize = initialSpillSize;
130 } 130 }
131 131
132 public StackSlot allocateDeoptimizationRescueSlot() { 132 public StackSlot allocateDeoptimizationRescueSlot() {
133 assert spillSize == initialSpillSize || spillSize == initialSpillSize + spillSlotSize(LIRKind.value(Kind.Long)) : "Deoptimization rescue slot must be the first or second (if there is an RBP spill slot) stack slot"; 133 assert spillSize == initialSpillSize || spillSize == initialSpillSize + spillSlotSize(LIRKind.value(JavaKind.Long)) : "Deoptimization rescue slot must be the first or second (if there is an RBP spill slot) stack slot";
134 return allocateSpillSlot(LIRKind.value(Kind.Long)); 134 return allocateSpillSlot(LIRKind.value(JavaKind.Long));
135 } 135 }
136 } 136 }