Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlot.java @ 16727:9d55732d0880
additional info field on FrameSlot nodes (for language-specific use)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Fri, 08 Aug 2014 15:54:39 +0200 |
parents | 80b0bd9e29c8 |
children |
comparison
equal
deleted
inserted
replaced
16726:734247341e6e | 16727:9d55732d0880 |
---|---|
32 */ | 32 */ |
33 public final class FrameSlot implements Cloneable { | 33 public final class FrameSlot implements Cloneable { |
34 | 34 |
35 private final FrameDescriptor descriptor; | 35 private final FrameDescriptor descriptor; |
36 private final Object identifier; | 36 private final Object identifier; |
37 private final Object info; | |
37 private final int index; | 38 private final int index; |
38 @CompilationFinal private FrameSlotKind kind; | 39 @CompilationFinal private FrameSlotKind kind; |
39 | 40 |
40 public FrameSlot(FrameDescriptor descriptor, Object identifier, int index, FrameSlotKind kind) { | 41 public FrameSlot(FrameDescriptor descriptor, Object identifier, Object info, int index, FrameSlotKind kind) { |
41 this.descriptor = descriptor; | 42 this.descriptor = descriptor; |
42 this.identifier = identifier; | 43 this.identifier = identifier; |
44 this.info = info; | |
43 this.index = index; | 45 this.index = index; |
44 this.kind = kind; | 46 this.kind = kind; |
45 } | 47 } |
46 | 48 |
47 public Object getIdentifier() { | 49 public Object getIdentifier() { |
48 return identifier; | 50 return identifier; |
51 } | |
52 | |
53 public Object getInfo() { | |
54 return info; | |
49 } | 55 } |
50 | 56 |
51 public int getIndex() { | 57 public int getIndex() { |
52 return index; | 58 return index; |
53 } | 59 } |