comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java @ 8567:645f216a00c4

Minor bug fix in Truffle frame implementation.
author Andreas Woess <andreas.woess@jku.at>
date Thu, 28 Mar 2013 14:33:19 +0100
parents 1a2d258d481a
children 07f8d136a05e
comparison
equal deleted inserted replaced
8566:df2e756f9f56 8567:645f216a00c4
84 set(slot, Object.class, value); 84 set(slot, Object.class, value);
85 } 85 }
86 86
87 @Override 87 @Override
88 public boolean getBoolean(FrameSlot slot) { 88 public boolean getBoolean(FrameSlot slot) {
89 return (Boolean) get(slot, Float.class, UNDEFINED_BOOLEAN); 89 return (Boolean) get(slot, Boolean.class, UNDEFINED_BOOLEAN);
90 } 90 }
91 91
92 @Override 92 @Override
93 public void setBoolean(FrameSlot slot, boolean value) { 93 public void setBoolean(FrameSlot slot, boolean value) {
94 set(slot, Float.class, value); 94 set(slot, Boolean.class, value);
95 } 95 }
96 96
97 @Override 97 @Override
98 public int getInt(FrameSlot slot) { 98 public int getInt(FrameSlot slot) {
99 return (Integer) get(slot, Integer.class, UNDEFINED_INTEGER); 99 return (Integer) get(slot, Integer.class, UNDEFINED_INTEGER);