Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultMaterializedFrame.java @ 9258:07f8d136a05e
Truffle API changes for the Frame API. Introduction of Assumptions class.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 23 Apr 2013 15:34:06 +0200 |
parents | 1a2d258d481a |
children | e162d9e32830 |
comparison
equal
deleted
inserted
replaced
9257:542712a4732a | 9258:07f8d136a05e |
---|---|
37 public Arguments getArguments() { | 37 public Arguments getArguments() { |
38 return wrapped.getArguments(); | 38 return wrapped.getArguments(); |
39 } | 39 } |
40 | 40 |
41 @Override | 41 @Override |
42 public Object getObject(FrameSlot slot) { | 42 public Object getObject(FrameSlot slot) throws FrameSlotTypeException { |
43 return wrapped.getObject(slot); | 43 return wrapped.getObject(slot); |
44 } | 44 } |
45 | 45 |
46 @Override | 46 @Override |
47 public void setObject(FrameSlot slot, Object value) { | 47 public void setObject(FrameSlot slot, Object value) throws FrameSlotTypeException { |
48 wrapped.setObject(slot, value); | 48 wrapped.setObject(slot, value); |
49 } | 49 } |
50 | 50 |
51 @Override | 51 @Override |
52 public boolean getBoolean(FrameSlot slot) { | 52 public boolean getBoolean(FrameSlot slot) throws FrameSlotTypeException { |
53 return wrapped.getBoolean(slot); | 53 return wrapped.getBoolean(slot); |
54 } | 54 } |
55 | 55 |
56 @Override | 56 @Override |
57 public void setBoolean(FrameSlot slot, boolean value) { | 57 public void setBoolean(FrameSlot slot, boolean value) throws FrameSlotTypeException { |
58 wrapped.setBoolean(slot, value); | 58 wrapped.setBoolean(slot, value); |
59 } | 59 } |
60 | 60 |
61 @Override | 61 @Override |
62 public int getInt(FrameSlot slot) { | 62 public int getInt(FrameSlot slot) throws FrameSlotTypeException { |
63 return wrapped.getInt(slot); | 63 return wrapped.getInt(slot); |
64 } | 64 } |
65 | 65 |
66 @Override | 66 @Override |
67 public void setInt(FrameSlot slot, int value) { | 67 public void setInt(FrameSlot slot, int value) throws FrameSlotTypeException { |
68 wrapped.setInt(slot, value); | 68 wrapped.setInt(slot, value); |
69 } | 69 } |
70 | 70 |
71 @Override | 71 @Override |
72 public long getLong(FrameSlot slot) { | 72 public long getLong(FrameSlot slot) throws FrameSlotTypeException { |
73 return wrapped.getLong(slot); | 73 return wrapped.getLong(slot); |
74 } | 74 } |
75 | 75 |
76 @Override | 76 @Override |
77 public void setLong(FrameSlot slot, long value) { | 77 public void setLong(FrameSlot slot, long value) throws FrameSlotTypeException { |
78 wrapped.setLong(slot, value); | 78 wrapped.setLong(slot, value); |
79 } | 79 } |
80 | 80 |
81 @Override | 81 @Override |
82 public float getFloat(FrameSlot slot) { | 82 public float getFloat(FrameSlot slot) throws FrameSlotTypeException { |
83 return wrapped.getFloat(slot); | 83 return wrapped.getFloat(slot); |
84 } | 84 } |
85 | 85 |
86 @Override | 86 @Override |
87 public void setFloat(FrameSlot slot, float value) { | 87 public void setFloat(FrameSlot slot, float value) throws FrameSlotTypeException { |
88 wrapped.setFloat(slot, value); | 88 wrapped.setFloat(slot, value); |
89 } | 89 } |
90 | 90 |
91 @Override | 91 @Override |
92 public double getDouble(FrameSlot slot) { | 92 public double getDouble(FrameSlot slot) throws FrameSlotTypeException { |
93 return wrapped.getDouble(slot); | 93 return wrapped.getDouble(slot); |
94 } | 94 } |
95 | 95 |
96 @Override | 96 @Override |
97 public void setDouble(FrameSlot slot, double value) { | 97 public void setDouble(FrameSlot slot, double value) throws FrameSlotTypeException { |
98 wrapped.setDouble(slot, value); | 98 wrapped.setDouble(slot, value); |
99 } | 99 } |
100 | 100 |
101 @Override | 101 @Override |
102 public void updateToLatestVersion() { | 102 public Object getValue(FrameSlot slot) { |
103 wrapped.updateToLatestVersion(); | 103 return wrapped.getValue(slot); |
104 } | 104 } |
105 | 105 |
106 @Override | 106 @Override |
107 public PackedFrame pack() { | 107 public PackedFrame pack() { |
108 return this; | 108 return this; |