comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/SpecializationData.java @ 8256:4dc7034317ec

Cleanup.
author Christian Humer <christian.humer@gmail.com>
date Wed, 13 Mar 2013 20:04:42 +0100
parents 0905d796944a
children 89006c76f737
comparison
equal deleted inserted replaced
8255:1384c39e2c53 8256:4dc7034317ec
37 private List<SpecializationGuardData> guards; 37 private List<SpecializationGuardData> guards;
38 private List<ShortCircuitData> shortCircuits; 38 private List<ShortCircuitData> shortCircuits;
39 private boolean useSpecializationsForGeneric = true; 39 private boolean useSpecializationsForGeneric = true;
40 private NodeData node; 40 private NodeData node;
41 41
42 private final boolean synthetic;
43
44 public SpecializationData(TemplateMethod template, int order, List<SpecializationThrowsData> exceptions) { 42 public SpecializationData(TemplateMethod template, int order, List<SpecializationThrowsData> exceptions) {
45 super(template); 43 super(template);
46 this.order = order; 44 this.order = order;
47 this.generic = false; 45 this.generic = false;
48 this.uninitialized = false; 46 this.uninitialized = false;
49 this.synthetic = false;
50 this.exceptions = exceptions; 47 this.exceptions = exceptions;
51 48
52 for (SpecializationThrowsData exception : exceptions) { 49 for (SpecializationThrowsData exception : exceptions) {
53 exception.setSpecialization(this); 50 exception.setSpecialization(this);
54 } 51 }
55 } 52 }
56 53
57 public SpecializationData(TemplateMethod template, boolean generic, boolean uninitialized, boolean synthetic) { 54 public SpecializationData(TemplateMethod template, boolean generic, boolean uninitialized) {
58 super(template); 55 super(template);
59 this.order = Specialization.DEFAULT_ORDER; 56 this.order = Specialization.DEFAULT_ORDER;
60 this.generic = generic; 57 this.generic = generic;
61 this.uninitialized = uninitialized; 58 this.uninitialized = uninitialized;
62 this.exceptions = Collections.emptyList(); 59 this.exceptions = Collections.emptyList();
63 this.guards = new ArrayList<>(); 60 this.guards = new ArrayList<>();
64 this.synthetic = synthetic;
65 } 61 }
66 62
67 @Override 63 @Override
68 protected List<MessageContainer> findChildContainers() { 64 protected List<MessageContainer> findChildContainers() {
69 List<MessageContainer> sinks = new ArrayList<>(); 65 List<MessageContainer> sinks = new ArrayList<>();
104 this.node = node; 100 this.node = node;
105 } 101 }
106 102
107 public void setGuards(List<SpecializationGuardData> guards) { 103 public void setGuards(List<SpecializationGuardData> guards) {
108 this.guards = guards; 104 this.guards = guards;
109 }
110
111 public boolean isSynthetic() {
112 return synthetic;
113 } 105 }
114 106
115 public int getOrder() { 107 public int getOrder() {
116 return order; 108 return order;
117 } 109 }