Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Local.java @ 2603:01c5c0443158
new node layout: Phi
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 06 May 2011 11:18:15 +0200 |
parents | 16b9a8b5ad39 |
children | 056e392d63d4 |
comparison
equal
deleted
inserted
replaced
2602:0c6564c254af | 2603:01c5c0443158 |
---|---|
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 | 24 |
25 import com.oracle.graal.graph.*; | |
25 import com.sun.c1x.debug.*; | 26 import com.sun.c1x.debug.*; |
26 import com.sun.cri.ci.*; | 27 import com.sun.cri.ci.*; |
27 import com.sun.cri.ri.*; | 28 import com.sun.cri.ri.*; |
28 | 29 |
29 /** | 30 /** |
30 * The {@code Local} instruction is a placeholder for an incoming argument | 31 * The {@code Local} instruction is a placeholder for an incoming argument |
31 * to a function call. | 32 * to a function call. |
32 * | |
33 * @author Ben L. Titzer | |
34 */ | 33 */ |
35 public final class Local extends Value { | 34 public final class Local extends Value { |
35 | |
36 private static final int INPUT_COUNT = 0; | |
37 private static final int SUCCESSOR_COUNT = 0; | |
36 | 38 |
37 private final int javaIndex; | 39 private final int javaIndex; |
38 private RiType declaredType; | 40 private RiType declaredType; |
39 | 41 |
40 public Local(CiKind kind, int javaIndex) { | 42 public Local(CiKind kind, int javaIndex, Graph graph) { |
41 super(kind); | 43 super(kind, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
42 this.javaIndex = javaIndex; | 44 this.javaIndex = javaIndex; |
43 } | 45 } |
44 | 46 |
45 @Override | 47 @Override |
46 public BlockBegin block() { | 48 public BlockBegin block() { |