Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameDescriptor.java @ 22506:67d312302970
avoid string concatenation in FrameDescriptor#getNotInFrameAssumption
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Thu, 17 Dec 2015 15:11:27 +0100 |
parents | a73f1d7a5a3e |
children | 8d5a558f4279 |
comparison
equal
deleted
inserted
replaced
22505:c81e7280af42 | 22506:67d312302970 |
---|---|
314 Assumption assumption = identifierToNotInFrameAssumptionMap.get(identifier); | 314 Assumption assumption = identifierToNotInFrameAssumptionMap.get(identifier); |
315 if (assumption != null) { | 315 if (assumption != null) { |
316 return assumption; | 316 return assumption; |
317 } | 317 } |
318 } | 318 } |
319 Assumption assumption = Truffle.getRuntime().createAssumption("not in frame: " + identifier); | 319 Assumption assumption = Truffle.getRuntime().createAssumption("identifier not in frame"); |
320 identifierToNotInFrameAssumptionMap.put(identifier, assumption); | 320 identifierToNotInFrameAssumptionMap.put(identifier, assumption); |
321 return assumption; | 321 return assumption; |
322 } | 322 } |
323 | 323 |
324 private void invalidateNotInFrameAssumption(Object identifier) { | 324 private void invalidateNotInFrameAssumption(Object identifier) { |