Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.code/src/jdk/vm/ci/code/RegisterValue.java @ 23397:a7b12c1ab514
Javadoc fix.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 13 May 2016 16:38:50 +0200 |
parents | 9ed5b586018b |
children |
comparison
equal
deleted
inserted
replaced
23396:9ed5b586018b | 23397:a7b12c1ab514 |
---|---|
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package jdk.vm.ci.code; | 23 package jdk.vm.ci.code; |
24 | 24 |
25 import jdk.vm.ci.meta.AllocatableValue; | 25 import jdk.vm.ci.meta.AllocatableValue; |
26 import jdk.vm.ci.meta.JavaKind; | |
27 import jdk.vm.ci.meta.ValueKind; | 26 import jdk.vm.ci.meta.ValueKind; |
28 | 27 |
29 /** | 28 /** |
30 * Denotes a register that stores a value of a fixed kind. There is exactly one (canonical) instance | 29 * Denotes a register that stores a value of a fixed kind. |
31 * of {@link RegisterValue} for each ({@link Register}, {@link JavaKind}) pair. Use | |
32 * {@link Register#asValue(ValueKind)} to retrieve the canonical {@link RegisterValue} instance for | |
33 * a given (register,kind) pair. | |
34 */ | 30 */ |
35 public final class RegisterValue extends AllocatableValue { | 31 public final class RegisterValue extends AllocatableValue { |
36 | 32 |
37 private final Register reg; | 33 private final Register reg; |
38 | 34 |
39 /** | |
40 * Should only be called from {@link Register#Register} to ensure canonicalization. | |
41 */ | |
42 protected RegisterValue(ValueKind<?> kind, Register register) { | 35 protected RegisterValue(ValueKind<?> kind, Register register) { |
43 super(kind); | 36 super(kind); |
44 this.reg = register; | 37 this.reg = register; |
45 } | 38 } |
46 | 39 |