comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameDescriptor.java @ 22522:cda3eebfa777

Documenting FrameSlot methods. Deprecating FrameSlot constructor in favor of FrameDescriptor.addFrameSlot.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Mon, 21 Dec 2015 11:11:45 +0100
parents 8d5a558f4279
children
comparison
equal deleted inserted replaced
22521:69e80ff8d725 22522:cda3eebfa777
131 public FrameSlot addFrameSlot(Object identifier, Object info, FrameSlotKind kind) { 131 public FrameSlot addFrameSlot(Object identifier, Object info, FrameSlotKind kind) {
132 CompilerAsserts.neverPartOfCompilation(NEVER_PART_OF_COMPILATION_MESSAGE); 132 CompilerAsserts.neverPartOfCompilation(NEVER_PART_OF_COMPILATION_MESSAGE);
133 if (identifierToSlotMap.containsKey(identifier)) { 133 if (identifierToSlotMap.containsKey(identifier)) {
134 throw new IllegalArgumentException("duplicate frame slot: " + identifier); 134 throw new IllegalArgumentException("duplicate frame slot: " + identifier);
135 } 135 }
136 FrameSlot slot = new FrameSlot(this, identifier, info, slots.size(), kind); 136 FrameSlot slot = new FrameSlot(this, identifier, info, kind, slots.size());
137 slots.add(slot); 137 slots.add(slot);
138 identifierToSlotMap.put(identifier, slot); 138 identifierToSlotMap.put(identifier, slot);
139 updateVersion(); 139 updateVersion();
140 invalidateNotInFrameAssumption(identifier); 140 invalidateNotInFrameAssumption(identifier);
141 return slot; 141 return slot;