Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/SpecializationGroup.java @ 11443:b33783cbd8ce
Truffle-DSL: refactored redundant guard generation code.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 28 Aug 2013 11:41:10 +0200 |
parents | 2868b55001d4 |
children | 5d72a3f5a31d |
comparison
equal
deleted
inserted
replaced
11442:2868b55001d4 | 11443:b33783cbd8ce |
---|---|
256 } | 256 } |
257 } | 257 } |
258 return false; | 258 return false; |
259 } | 259 } |
260 | 260 |
261 public static SpecializationGroup create(SpecializationData specialization) { | |
262 return new SpecializationGroup(specialization); | |
263 } | |
264 | |
261 public static SpecializationGroup create(List<SpecializationData> specializations) { | 265 public static SpecializationGroup create(List<SpecializationData> specializations) { |
262 List<SpecializationGroup> groups = new ArrayList<>(); | 266 List<SpecializationGroup> groups = new ArrayList<>(); |
263 for (SpecializationData specialization : specializations) { | 267 for (SpecializationData specialization : specializations) { |
264 groups.add(new SpecializationGroup(specialization)); | 268 groups.add(new SpecializationGroup(specialization)); |
265 } | 269 } |