# HG changeset patch
# User Thomas Wuerthinger
# Date 1360081137 -3600
# Node ID f07cafa29db11f267dc7e1174d9b35101aa75fc6
# Parent 1a2d258d481a7cee209f1ec8d15a93a7aee9eb58
Allow arbitrary objects to serve as identifiers for a frame slot.
diff -r 1a2d258d481a -r f07cafa29db1 graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/FrameTest.java
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/FrameTest.java Tue Feb 05 17:03:51 2013 +0100
+++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/FrameTest.java Tue Feb 05 17:18:57 2013 +0100
@@ -35,7 +35,7 @@
* The frame is the preferred data structure for passing values between nodes. It can in particular
* be used for storing the values of local variables of the guest language. The
* {@link FrameDescriptor} represents the current structure of the frame. The method
- * {@link FrameDescriptor#addFrameSlot(String, Class)} can be used to create predefined frame slots.
+ * {@link FrameDescriptor#addFrameSlot(Object, Class)} can be used to create predefined frame slots.
* The setter and getter methods in the {@link Frame} class can be used to access the current value
* of a particular frame slot.
*
diff -r 1a2d258d481a -r f07cafa29db1 graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameDescriptor.java
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameDescriptor.java Tue Feb 05 17:03:51 2013 +0100
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameDescriptor.java Tue Feb 05 17:18:57 2013 +0100
@@ -33,7 +33,7 @@
protected final TypeConversion typeConversion;
private final ArrayList slots;
private FrameVersionImpl lastVersion;
- private final HashMap nameToSlotMap;
+ private final HashMap