comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameDescriptor.java @ 9521:79dab3bce7d0

FrameDescriptor: fix default frame slot kind.
author Andreas Woess <andreas.woess@jku.at>
date Thu, 02 May 2013 18:37:53 +0200
parents cd1a1d92b3e3
children 5d91b0b67cba
comparison
equal deleted inserted replaced
9520:3bb1834202f7 9521:79dab3bce7d0
48 identifierToSlotMap = new HashMap<>(); 48 identifierToSlotMap = new HashMap<>();
49 version = createVersion(); 49 version = createVersion();
50 } 50 }
51 51
52 public FrameSlot addFrameSlot(Object identifier) { 52 public FrameSlot addFrameSlot(Object identifier) {
53 return addFrameSlot(identifier, null); 53 return addFrameSlot(identifier, FrameSlotKind.Illegal);
54 } 54 }
55 55
56 public FrameSlot addFrameSlot(Object identifier, FrameSlotKind kind) { 56 public FrameSlot addFrameSlot(Object identifier, FrameSlotKind kind) {
57 assert !identifierToSlotMap.containsKey(identifier); 57 assert !identifierToSlotMap.containsKey(identifier);
58 FrameSlotImpl slot = new FrameSlotImpl(this, identifier, slots.size(), kind); 58 FrameSlotImpl slot = new FrameSlotImpl(this, identifier, slots.size(), kind);