Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/FrameTest.java @ 12405:139b84d713bc
Truffle API adjustments: Simplify frame handling. Introduce cast for MaterializedFrame objects.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 14 Oct 2013 23:28:10 +0200 |
parents | df1d665ca846 |
children | ac5b0f31f7a2 |
comparison
equal
deleted
inserted
replaced
12404:47eb670c1634 | 12405:139b84d713bc |
---|---|
112 super(slot); | 112 super(slot); |
113 } | 113 } |
114 | 114 |
115 @Override | 115 @Override |
116 int execute(VirtualFrame frame) { | 116 int execute(VirtualFrame frame) { |
117 try { | 117 frame.setInt(slot, 42); |
118 frame.setInt(slot, 42); | |
119 } catch (FrameSlotTypeException e) { | |
120 throw new IllegalStateException(e); | |
121 } | |
122 return 0; | 118 return 0; |
123 } | 119 } |
124 } | 120 } |
125 | 121 |
126 class ReadLocal extends FrameSlotNode { | 122 class ReadLocal extends FrameSlotNode { |