Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/SpecializationGroup.java @ 20938:18c0f02fa4d2
Truffle-DSL: make type systems optional.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 14 Apr 2015 15:12:48 +0200 |
parents | f4792a544170 |
children |
comparison
equal
deleted
inserted
replaced
20937:37ea76052733 | 20938:18c0f02fa4d2 |
---|---|
22 */ | 22 */ |
23 package com.oracle.truffle.dsl.processor.parser; | 23 package com.oracle.truffle.dsl.processor.parser; |
24 | 24 |
25 import java.util.*; | 25 import java.util.*; |
26 | 26 |
27 import javax.lang.model.type.*; | |
28 | |
27 import com.oracle.truffle.dsl.processor.model.*; | 29 import com.oracle.truffle.dsl.processor.model.*; |
28 import com.oracle.truffle.dsl.processor.model.TemplateMethod.TypeSignature; | 30 import com.oracle.truffle.dsl.processor.model.TemplateMethod.TypeSignature; |
29 | 31 |
30 /** | 32 /** |
31 * Class creates groups of specializations to optimize the layout of generated executeAndSpecialize | 33 * Class creates groups of specializations to optimize the layout of generated executeAndSpecialize |
297 } | 299 } |
298 | 300 |
299 public static final class TypeGuard { | 301 public static final class TypeGuard { |
300 | 302 |
301 private final int signatureIndex; | 303 private final int signatureIndex; |
302 private final TypeData type; | 304 private final TypeMirror type; |
303 | 305 |
304 public TypeGuard(TypeData type, int signatureIndex) { | 306 public TypeGuard(TypeMirror type, int signatureIndex) { |
305 this.type = type; | 307 this.type = type; |
306 this.signatureIndex = signatureIndex; | 308 this.signatureIndex = signatureIndex; |
307 } | 309 } |
308 | 310 |
309 @Override | 311 @Override |
336 | 338 |
337 public int getSignatureIndex() { | 339 public int getSignatureIndex() { |
338 return signatureIndex; | 340 return signatureIndex; |
339 } | 341 } |
340 | 342 |
341 public TypeData getType() { | 343 public TypeMirror getType() { |
342 return type; | 344 return type; |
343 } | 345 } |
344 } | 346 } |
345 | 347 |
346 public SpecializationGroup getPrevious() { | 348 public SpecializationGroup getPrevious() { |