Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/MoveResolver.java @ 20149:b1a8928fc4b9
[SPARC] Implement new instructions in assembler/enhance assertion error-message in MoveResolver
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Thu, 02 Apr 2015 18:45:28 +0200 |
parents | 1cf73c50e3dc |
children | abc059cb0acf |
comparison
equal
deleted
inserted
replaced
20144:921eeb012866 | 20149:b1a8928fc4b9 |
---|---|
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.graal.lir.alloc.lsra; | 23 package com.oracle.graal.lir.alloc.lsra; |
24 | 24 |
25 import static com.oracle.graal.api.code.ValueUtil.*; | 25 import static com.oracle.graal.api.code.ValueUtil.*; |
26 import static java.lang.String.*; | |
26 | 27 |
27 import java.util.*; | 28 import java.util.*; |
28 | 29 |
29 import com.oracle.graal.api.code.*; | 30 import com.oracle.graal.api.code.*; |
30 import com.oracle.graal.api.meta.*; | 31 import com.oracle.graal.api.meta.*; |
207 | 208 |
208 Debug.log("insert move from %s to %s at %d", fromInterval, toInterval, insertIdx); | 209 Debug.log("insert move from %s to %s at %d", fromInterval, toInterval, insertIdx); |
209 } | 210 } |
210 | 211 |
211 private void insertMove(Value fromOpr, Interval toInterval) { | 212 private void insertMove(Value fromOpr, Interval toInterval) { |
212 assert fromOpr.getLIRKind().equals(toInterval.kind()) : "move between different types"; | 213 assert fromOpr.getLIRKind().equals(toInterval.kind()) : format("move between different types %s %s", fromOpr.getLIRKind(), toInterval.kind()); |
213 assert insertIdx != -1 : "must setup insert position first"; | 214 assert insertIdx != -1 : "must setup insert position first"; |
214 | 215 |
215 AllocatableValue toOpr = toInterval.operand; | 216 AllocatableValue toOpr = toInterval.operand; |
216 insertionBuffer.append(insertIdx, allocator.getSpillMoveFactory().createMove(toOpr, fromOpr)); | 217 insertionBuffer.append(insertIdx, allocator.getSpillMoveFactory().createMove(toOpr, fromOpr)); |
217 | 218 |