Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/NodeData.java @ 17251:6ee7afea175a
Truffle-DSL: Fixed @SlowPath was not applied to certain specialize0 implementations. This will reduce the pressure on the truffle cache.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Sep 2014 18:37:24 +0200 |
parents | 2db61eddcb97 |
children | 59bf50cc5a32 |
comparison
equal
deleted
inserted
replaced
17250:9f001294893d | 17251:6ee7afea175a |
---|---|
97 return getSpecializations().get(0).getSignatureSize(); | 97 return getSpecializations().get(0).getSignatureSize(); |
98 } | 98 } |
99 return 0; | 99 return 0; |
100 } | 100 } |
101 | 101 |
102 public boolean needsFrame(ProcessorContext context) { | 102 public boolean isFrameUsedByAnyGuard(ProcessorContext context) { |
103 for (SpecializationData specialization : specializations) { | 103 for (SpecializationData specialization : specializations) { |
104 if (!specialization.isReachable()) { | 104 if (!specialization.isReachable()) { |
105 continue; | 105 continue; |
106 } | 106 } |
107 if (specialization.hasFrame(context)) { | 107 if (specialization.isFrameUsedByGuard(context)) { |
108 return true; | 108 return true; |
109 } | 109 } |
110 } | 110 } |
111 return false; | 111 return false; |
112 } | 112 } |