Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/NodeData.java @ 12635:ba6593e52d22
Truffle-DSL: fixed additional wrong @SlowPath usage on generic. (GRAAL-490 #resolve)
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 28 Oct 2013 11:06:51 +0100 |
parents | 2fb276f5e3e9 |
children | 2b9fcffd6f36 |
comparison
equal
deleted
inserted
replaced
12613:595f01abb887 | 12635:ba6593e52d22 |
---|---|
76 this.fields = splitSource.fields; | 76 this.fields = splitSource.fields; |
77 this.children = splitSource.children; | 77 this.children = splitSource.children; |
78 this.assumptions = splitSource.assumptions; | 78 this.assumptions = splitSource.assumptions; |
79 } | 79 } |
80 | 80 |
81 public boolean needsFrame() { | 81 public boolean needsFrame(ProcessorContext context) { |
82 for (SpecializationData specialization : specializations) { | 82 for (SpecializationData specialization : specializations) { |
83 if (!specialization.isReachable()) { | 83 if (!specialization.isReachable()) { |
84 continue; | 84 continue; |
85 } | 85 } |
86 if (specialization.findParameter("frameValue") != null) { | 86 if (specialization.hasFrame(context)) { |
87 return true; | 87 return true; |
88 } | 88 } |
89 } | 89 } |
90 return false; | 90 return false; |
91 } | 91 } |