Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/typesystem/GuardData.java @ 11190:4eb23800c907
Truffle-DSL: Implemented support for negated guards (GRAAL-371 #resolve)
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 31 Jul 2013 15:36:01 +0200 |
parents | 79041ab43660 |
children | 4f52b08bd2f9 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/typesystem/GuardData.java Wed Jul 31 15:07:42 2013 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/typesystem/GuardData.java Wed Jul 31 15:36:01 2013 +0200 @@ -28,12 +28,18 @@ public class GuardData extends TemplateMethod { private final SpecializationData specialization; + private final boolean negated; - public GuardData(TemplateMethod method, SpecializationData specialization) { + public GuardData(TemplateMethod method, SpecializationData specialization, boolean negated) { super(method); + this.negated = negated; this.specialization = specialization; } + public boolean isNegated() { + return negated; + } + public SpecializationData getSpecialization() { return specialization; }