Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Invoke.java @ 2834:bfce42cd9c07
Graph duplication now passes all tests
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 31 May 2011 13:34:52 +0200 |
parents | 27c00b180416 |
children | 14708c03abba |
comparison
equal
deleted
inserted
replaced
2829:27c00b180416 | 2834:bfce42cd9c07 |
---|---|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 com.sun.c1x.ir; | 23 package com.sun.c1x.ir; |
24 | |
25 import java.util.*; | |
24 | 26 |
25 import com.oracle.graal.graph.*; | 27 import com.oracle.graal.graph.*; |
26 import com.sun.c1x.debug.*; | 28 import com.sun.c1x.debug.*; |
27 import com.sun.c1x.util.*; | 29 import com.sun.c1x.util.*; |
28 import com.sun.cri.bytecode.*; | 30 import com.sun.cri.bytecode.*; |
182 } | 184 } |
183 out.print(CiUtil.format(") [method: %H.%n(%p):%r]", target, false)); | 185 out.print(CiUtil.format(") [method: %H.%n(%p):%r]", target, false)); |
184 } | 186 } |
185 | 187 |
186 @Override | 188 @Override |
189 public Map<Object, Object> getDebugProperties() { | |
190 Map<Object, Object> properties = super.getDebugProperties(); | |
191 properties.put("opcode", Bytecodes.nameOf(opcode)); | |
192 properties.put("target", CiUtil.format("%H.%n(%p):%r", target, false)); | |
193 properties.put("bci", bci); | |
194 return properties; | |
195 } | |
196 | |
197 @Override | |
187 public Node copy(Graph into) { | 198 public Node copy(Graph into) { |
188 Invoke x = new Invoke(bci, opcode, kind, new Value[argumentCount], target, returnType, into); | 199 Invoke x = new Invoke(bci, opcode, kind, new Value[argumentCount], target, returnType, into); |
189 x.setNonNull(isNonNull()); | 200 x.setNonNull(isNonNull()); |
190 return x; | 201 return x; |
191 } | 202 } |