Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameDescriptor.java @ 22298:e2e5168618fc
FrameDescriptor.findFrameSlot() should not be called in compiled code.
author | Benoit Daloze <benoit.daloze@jku.at> |
---|---|
date | Sat, 10 Oct 2015 12:25:47 +0200 |
parents | dc83cc1f94f2 |
children | 079cd9183128 |
comparison
equal
deleted
inserted
replaced
22297:145f995cd2fe | 22298:e2e5168618fc |
---|---|
83 invalidateNotInFrameAssumption(identifier); | 83 invalidateNotInFrameAssumption(identifier); |
84 return slot; | 84 return slot; |
85 } | 85 } |
86 | 86 |
87 public FrameSlot findFrameSlot(Object identifier) { | 87 public FrameSlot findFrameSlot(Object identifier) { |
88 CompilerAsserts.neverPartOfCompilation("interpreter-only. includes hashmap operations."); | |
88 return identifierToSlotMap.get(identifier); | 89 return identifierToSlotMap.get(identifier); |
89 } | 90 } |
90 | 91 |
91 public FrameSlot findOrAddFrameSlot(Object identifier) { | 92 public FrameSlot findOrAddFrameSlot(Object identifier) { |
92 FrameSlot result = findFrameSlot(identifier); | 93 FrameSlot result = findFrameSlot(identifier); |