| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of ssa; | 5 part of ssa; |
| 6 | 6 |
| 7 abstract class HVisitor<R> { | 7 abstract class HVisitor<R> { |
| 8 R visitAdd(HAdd node); | 8 R visitAdd(HAdd node); |
| 9 R visitAwait(HAwait node); | 9 R visitAwait(HAwait node); |
| 10 R visitBitAnd(HBitAnd node); | 10 R visitBitAnd(HBitAnd node); |
| (...skipping 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2180 TypeMask type) | 2180 TypeMask type) |
| 2181 : this(variable, inputs, type); | 2181 : this(variable, inputs, type); |
| 2182 | 2182 |
| 2183 void addInput(HInstruction input) { | 2183 void addInput(HInstruction input) { |
| 2184 assert(isInBasicBlock()); | 2184 assert(isInBasicBlock()); |
| 2185 inputs.add(input); | 2185 inputs.add(input); |
| 2186 assert(inputs.length <= block.predecessors.length); | 2186 assert(inputs.length <= block.predecessors.length); |
| 2187 input.usedBy.add(this); | 2187 input.usedBy.add(this); |
| 2188 } | 2188 } |
| 2189 | 2189 |
| 2190 toString() => 'phi'; | 2190 toString() => 'phi $id'; |
| 2191 accept(HVisitor visitor) => visitor.visitPhi(this); | 2191 accept(HVisitor visitor) => visitor.visitPhi(this); |
| 2192 } | 2192 } |
| 2193 | 2193 |
| 2194 abstract class HRelational extends HInvokeBinary { | 2194 abstract class HRelational extends HInvokeBinary { |
| 2195 bool usesBoolifiedInterceptor = false; | 2195 bool usesBoolifiedInterceptor = false; |
| 2196 HRelational(left, right, selector, type) : super(left, right, selector, type); | 2196 HRelational(left, right, selector, type) : super(left, right, selector, type); |
| 2197 } | 2197 } |
| 2198 | 2198 |
| 2199 class HIdentity extends HRelational { | 2199 class HIdentity extends HRelational { |
| 2200 // Cached codegen decision. | 2200 // Cached codegen decision. |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3175 class HDynamicType extends HRuntimeType { | 3175 class HDynamicType extends HRuntimeType { |
| 3176 HDynamicType(DynamicType dartType, TypeMask instructionType) | 3176 HDynamicType(DynamicType dartType, TypeMask instructionType) |
| 3177 : super(const <HInstruction>[], dartType, instructionType); | 3177 : super(const <HInstruction>[], dartType, instructionType); |
| 3178 | 3178 |
| 3179 accept(HVisitor visitor) => visitor.visitDynamicType(this); | 3179 accept(HVisitor visitor) => visitor.visitDynamicType(this); |
| 3180 | 3180 |
| 3181 int typeCode() => HInstruction.DYNAMIC_TYPE_TYPECODE; | 3181 int typeCode() => HInstruction.DYNAMIC_TYPE_TYPECODE; |
| 3182 | 3182 |
| 3183 bool typeEquals(HInstruction other) => other is HDynamicType; | 3183 bool typeEquals(HInstruction other) => other is HDynamicType; |
| 3184 } | 3184 } |
| OLD | NEW |