Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/typesystem/GuardData.java @ 8595:8a1115c92271
Implemented codegen guard definitions can now omit unused parameters.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 01 Apr 2013 21:43:20 +0200 |
parents | 703c09f8640c |
children | d6d5e3dc2713 |
comparison
equal
deleted
inserted
replaced
8594:ce6e8672f798 | 8595:8a1115c92271 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.truffle.codegen.processor.typesystem; | 23 package com.oracle.truffle.codegen.processor.typesystem; |
24 | 24 |
25 import com.oracle.truffle.codegen.processor.node.*; | |
25 import com.oracle.truffle.codegen.processor.template.*; | 26 import com.oracle.truffle.codegen.processor.template.*; |
26 | 27 |
27 public class GuardData extends TemplateMethod { | 28 public class GuardData extends TemplateMethod { |
28 | 29 |
29 public GuardData(TemplateMethod method) { | 30 private final SpecializationData specialization; |
31 | |
32 public GuardData(TemplateMethod method, SpecializationData specialization) { | |
30 super(method); | 33 super(method); |
34 this.specialization = specialization; | |
35 } | |
36 | |
37 public SpecializationData getSpecialization() { | |
38 return specialization; | |
31 } | 39 } |
32 | 40 |
33 } | 41 } |