Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ReturnTypeSpecializationTest.java @ 18161:94f16a759646
Truffle: remove FrameTypeConversion interface
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Thu, 23 Oct 2014 13:45:59 +0200 |
parents | a08b8694f556 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ReturnTypeSpecializationTest.java Thu Oct 23 12:02:02 2014 +0200 +++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ReturnTypeSpecializationTest.java Thu Oct 23 13:45:59 2014 +0200 @@ -30,7 +30,7 @@ /** * <h3>Specializing Return Types</h3> - * + * * <p> * In order to avoid boxing and/or type casts on the return value of a node, the return value the * method for executing a node can have a specific type and need not be of type @@ -124,6 +124,7 @@ int result = value.executeInt(frame); frame.setInt(slot, result); } catch (UnexpectedResultException e) { + slot.setKind(FrameSlotKind.Object); frame.setObject(slot, e.getResult()); replace(new ObjectAssignLocal(slot, value)); } @@ -143,6 +144,7 @@ @Override Object execute(VirtualFrame frame) { Object o = value.execute(frame); + slot.setKind(FrameSlotKind.Object); frame.setObject(slot, o); return null; }