Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotImpl.java @ 11638:269e6794e1ec
Truffle: Frame restructuring.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Sun, 15 Sep 2013 02:39:07 +0200 |
parents | 494b818b527c |
children | 139b84d713bc |
comparison
equal
deleted
inserted
replaced
11637:126e20d36563 | 11638:269e6794e1ec |
---|---|
49 public FrameSlotKind getKind() { | 49 public FrameSlotKind getKind() { |
50 return kind; | 50 return kind; |
51 } | 51 } |
52 | 52 |
53 public void setKind(final FrameSlotKind kind) { | 53 public void setKind(final FrameSlotKind kind) { |
54 assert this.kind != kind; | 54 if (this.kind != kind) { |
55 this.kind = kind; | 55 this.kind = kind; |
56 this.descriptor.updateVersion(); | 56 this.descriptor.updateVersion(); |
57 } | |
57 } | 58 } |
58 | 59 |
59 @Override | 60 @Override |
60 public String toString() { | 61 public String toString() { |
61 return "[" + index + "," + identifier + "," + kind + "]"; | 62 return "[" + index + "," + identifier + "," + kind + "]"; |