Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/NativeFrame.java @ 12643:856a9864ed93
Frame: add is<Type> methods.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Wed, 30 Oct 2013 20:01:50 +0100 |
parents | 51dcddfa25a6 |
children |
comparison
equal
deleted
inserted
replaced
12642:e9f23b348da2 | 12643:856a9864ed93 |
---|---|
46 return (T) arguments; | 46 return (T) arguments; |
47 } | 47 } |
48 | 48 |
49 @Override | 49 @Override |
50 public Object getObject(FrameSlot slot) { | 50 public Object getObject(FrameSlot slot) { |
51 throw new UnsupportedOperationException("native frame"); | 51 throw unsupportedInNativeFrame(); |
52 } | 52 } |
53 | 53 |
54 @Override | 54 @Override |
55 public void setObject(FrameSlot slot, Object value) { | 55 public void setObject(FrameSlot slot, Object value) { |
56 throw new UnsupportedOperationException("native frame"); | 56 throw unsupportedInNativeFrame(); |
57 } | 57 } |
58 | 58 |
59 @Override | 59 @Override |
60 public byte getByte(FrameSlot slot) { | 60 public byte getByte(FrameSlot slot) { |
61 throw new UnsupportedOperationException("native frame"); | 61 throw unsupportedInNativeFrame(); |
62 } | 62 } |
63 | 63 |
64 @Override | 64 @Override |
65 public void setByte(FrameSlot slot, byte value) { | 65 public void setByte(FrameSlot slot, byte value) { |
66 throw new UnsupportedOperationException("native frame"); | 66 throw unsupportedInNativeFrame(); |
67 } | 67 } |
68 | 68 |
69 @Override | 69 @Override |
70 public boolean getBoolean(FrameSlot slot) { | 70 public boolean getBoolean(FrameSlot slot) { |
71 throw new UnsupportedOperationException("native frame"); | 71 throw unsupportedInNativeFrame(); |
72 } | 72 } |
73 | 73 |
74 @Override | 74 @Override |
75 public void setBoolean(FrameSlot slot, boolean value) { | 75 public void setBoolean(FrameSlot slot, boolean value) { |
76 throw new UnsupportedOperationException("native frame"); | 76 throw unsupportedInNativeFrame(); |
77 } | 77 } |
78 | 78 |
79 @Override | 79 @Override |
80 public int getInt(FrameSlot slot) { | 80 public int getInt(FrameSlot slot) { |
81 throw new UnsupportedOperationException("native frame"); | 81 throw unsupportedInNativeFrame(); |
82 } | 82 } |
83 | 83 |
84 @Override | 84 @Override |
85 public void setInt(FrameSlot slot, int value) { | 85 public void setInt(FrameSlot slot, int value) { |
86 throw new UnsupportedOperationException("native frame"); | 86 throw unsupportedInNativeFrame(); |
87 } | 87 } |
88 | 88 |
89 @Override | 89 @Override |
90 public long getLong(FrameSlot slot) { | 90 public long getLong(FrameSlot slot) { |
91 throw new UnsupportedOperationException("native frame"); | 91 throw unsupportedInNativeFrame(); |
92 } | 92 } |
93 | 93 |
94 @Override | 94 @Override |
95 public void setLong(FrameSlot slot, long value) { | 95 public void setLong(FrameSlot slot, long value) { |
96 throw new UnsupportedOperationException("native frame"); | 96 throw unsupportedInNativeFrame(); |
97 } | 97 } |
98 | 98 |
99 @Override | 99 @Override |
100 public float getFloat(FrameSlot slot) { | 100 public float getFloat(FrameSlot slot) { |
101 throw new UnsupportedOperationException("native frame"); | 101 throw unsupportedInNativeFrame(); |
102 } | 102 } |
103 | 103 |
104 @Override | 104 @Override |
105 public void setFloat(FrameSlot slot, float value) { | 105 public void setFloat(FrameSlot slot, float value) { |
106 throw new UnsupportedOperationException("native frame"); | 106 throw unsupportedInNativeFrame(); |
107 } | 107 } |
108 | 108 |
109 @Override | 109 @Override |
110 public double getDouble(FrameSlot slot) { | 110 public double getDouble(FrameSlot slot) { |
111 throw new UnsupportedOperationException("native frame"); | 111 throw unsupportedInNativeFrame(); |
112 } | 112 } |
113 | 113 |
114 @Override | 114 @Override |
115 public void setDouble(FrameSlot slot, double value) { | 115 public void setDouble(FrameSlot slot, double value) { |
116 throw new UnsupportedOperationException("native frame"); | 116 throw unsupportedInNativeFrame(); |
117 } | 117 } |
118 | 118 |
119 @Override | 119 @Override |
120 public Object getValue(FrameSlot slot) { | 120 public Object getValue(FrameSlot slot) { |
121 throw new UnsupportedOperationException("native frame"); | 121 throw unsupportedInNativeFrame(); |
122 } | 122 } |
123 | 123 |
124 @Override | 124 @Override |
125 public PackedFrame pack() { | 125 public PackedFrame pack() { |
126 return this; | 126 return this; |
131 return caller; | 131 return caller; |
132 } | 132 } |
133 | 133 |
134 @Override | 134 @Override |
135 public MaterializedFrame materialize() { | 135 public MaterializedFrame materialize() { |
136 throw new UnsupportedOperationException("native frame"); | 136 throw unsupportedInNativeFrame(); |
137 } | 137 } |
138 | 138 |
139 @Override | 139 @Override |
140 public VirtualFrame unpack() { | 140 public VirtualFrame unpack() { |
141 return this; | 141 return this; |
142 } | 142 } |
143 | 143 |
144 @Override | 144 @Override |
145 public FrameDescriptor getFrameDescriptor() { | 145 public FrameDescriptor getFrameDescriptor() { |
146 throw new UnsupportedOperationException("native frame"); | 146 throw unsupportedInNativeFrame(); |
147 } | 147 } |
148 | 148 |
149 @Override | 149 @Override |
150 public boolean isInitialized(FrameSlot slot) { | 150 public boolean isObject(FrameSlot slot) { |
151 throw unsupportedInNativeFrame(); | |
152 } | |
153 | |
154 @Override | |
155 public boolean isByte(FrameSlot slot) { | |
156 throw unsupportedInNativeFrame(); | |
157 } | |
158 | |
159 @Override | |
160 public boolean isBoolean(FrameSlot slot) { | |
161 throw unsupportedInNativeFrame(); | |
162 } | |
163 | |
164 @Override | |
165 public boolean isInt(FrameSlot slot) { | |
166 throw unsupportedInNativeFrame(); | |
167 } | |
168 | |
169 @Override | |
170 public boolean isLong(FrameSlot slot) { | |
171 throw unsupportedInNativeFrame(); | |
172 } | |
173 | |
174 @Override | |
175 public boolean isFloat(FrameSlot slot) { | |
176 throw unsupportedInNativeFrame(); | |
177 } | |
178 | |
179 @Override | |
180 public boolean isDouble(FrameSlot slot) { | |
181 throw unsupportedInNativeFrame(); | |
182 } | |
183 | |
184 private static UnsupportedOperationException unsupportedInNativeFrame() { | |
151 throw new UnsupportedOperationException("native frame"); | 185 throw new UnsupportedOperationException("native frame"); |
152 } | 186 } |
153 } | 187 } |