Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/SpecializationData.java @ 8243:d81ff782fa1a
Removed @SpecializationThrows from codegen API. Replaced it by a simplier version in @Specialization.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 04 Mar 2013 17:20:26 +0100 |
parents | ac4e8c16ffdf |
children | cb70ed101b5f |
comparison
equal
deleted
inserted
replaced
8242:ac4e8c16ffdf | 8243:d81ff782fa1a |
---|---|
30 public class SpecializationData extends TemplateMethod { | 30 public class SpecializationData extends TemplateMethod { |
31 | 31 |
32 private final int order; | 32 private final int order; |
33 private final boolean generic; | 33 private final boolean generic; |
34 private final boolean uninitialized; | 34 private final boolean uninitialized; |
35 private final SpecializationThrowsData[] exceptions; | 35 private final List<SpecializationThrowsData> exceptions; |
36 private SpecializationGuardData[] guards; | 36 private SpecializationGuardData[] guards; |
37 private ShortCircuitData[] shortCircuits; | 37 private ShortCircuitData[] shortCircuits; |
38 private boolean useSpecializationsForGeneric = true; | 38 private boolean useSpecializationsForGeneric = true; |
39 private NodeData node; | 39 private NodeData node; |
40 | 40 |
41 public SpecializationData(TemplateMethod template, int order, SpecializationThrowsData[] exceptions) { | 41 public SpecializationData(TemplateMethod template, int order, List<SpecializationThrowsData> exceptions) { |
42 super(template); | 42 super(template); |
43 this.order = order; | 43 this.order = order; |
44 this.generic = false; | 44 this.generic = false; |
45 this.uninitialized = false; | 45 this.uninitialized = false; |
46 this.exceptions = exceptions; | 46 this.exceptions = exceptions; |
53 public SpecializationData(TemplateMethod template, boolean generic, boolean uninitialized) { | 53 public SpecializationData(TemplateMethod template, boolean generic, boolean uninitialized) { |
54 super(template); | 54 super(template); |
55 this.order = Specialization.DEFAULT_ORDER; | 55 this.order = Specialization.DEFAULT_ORDER; |
56 this.generic = generic; | 56 this.generic = generic; |
57 this.uninitialized = uninitialized; | 57 this.uninitialized = uninitialized; |
58 this.exceptions = new SpecializationThrowsData[0]; | 58 this.exceptions = Collections.emptyList(); |
59 this.guards = new SpecializationGuardData[0]; | 59 this.guards = new SpecializationGuardData[0]; |
60 } | 60 } |
61 | 61 |
62 public NodeData getNode() { | 62 public NodeData getNode() { |
63 return node; | 63 return node; |
81 | 81 |
82 public boolean isUninitialized() { | 82 public boolean isUninitialized() { |
83 return uninitialized; | 83 return uninitialized; |
84 } | 84 } |
85 | 85 |
86 public SpecializationThrowsData[] getExceptions() { | 86 public List<SpecializationThrowsData> getExceptions() { |
87 return exceptions; | 87 return exceptions; |
88 } | 88 } |
89 | 89 |
90 public SpecializationGuardData[] getGuards() { | 90 public SpecializationGuardData[] getGuards() { |
91 return guards; | 91 return guards; |