| 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 import '../closure.dart'; | 5 import '../closure.dart'; |
| 6 import '../common.dart'; | 6 import '../common.dart'; |
| 7 import '../compiler.dart' show Compiler; | 7 import '../compiler.dart' show Compiler; |
| 8 import '../constants/constant_system.dart'; | 8 import '../constants/constant_system.dart'; |
| 9 import '../constants/values.dart'; | 9 import '../constants/values.dart'; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| (...skipping 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3232 accept(HVisitor visitor) => visitor.visitTypeInfoReadVariable(this); | 3232 accept(HVisitor visitor) => visitor.visitTypeInfoReadVariable(this); |
| 3233 | 3233 |
| 3234 bool canThrow() => false; | 3234 bool canThrow() => false; |
| 3235 | 3235 |
| 3236 int typeCode() => HInstruction.TYPE_INFO_READ_VARIABLE_TYPECODE; | 3236 int typeCode() => HInstruction.TYPE_INFO_READ_VARIABLE_TYPECODE; |
| 3237 bool typeEquals(HInstruction other) => other is HTypeInfoReadVariable; | 3237 bool typeEquals(HInstruction other) => other is HTypeInfoReadVariable; |
| 3238 | 3238 |
| 3239 bool dataEquals(HTypeInfoReadVariable other) { | 3239 bool dataEquals(HTypeInfoReadVariable other) { |
| 3240 return variable.element == other.variable.element; | 3240 return variable.element == other.variable.element; |
| 3241 } | 3241 } |
| 3242 |
| 3243 String toString() => 'HTypeInfoReadVariable($variable)'; |
| 3242 } | 3244 } |
| 3243 | 3245 |
| 3244 enum TypeInfoExpressionKind { COMPLETE, INSTANCE } | 3246 enum TypeInfoExpressionKind { COMPLETE, INSTANCE } |
| 3245 | 3247 |
| 3246 /// Constructs a representation of a closed or ground-term type (that is, a type | 3248 /// Constructs a representation of a closed or ground-term type (that is, a type |
| 3247 /// without type variables). | 3249 /// without type variables). |
| 3248 /// | 3250 /// |
| 3249 /// There are two forms: | 3251 /// There are two forms: |
| 3250 /// | 3252 /// |
| 3251 /// - COMPLETE: A complete form that is self contained, used for the values of | 3253 /// - COMPLETE: A complete form that is self contained, used for the values of |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3421 class HDynamicType extends HRuntimeType { | 3423 class HDynamicType extends HRuntimeType { |
| 3422 HDynamicType(DynamicType dartType, TypeMask instructionType) | 3424 HDynamicType(DynamicType dartType, TypeMask instructionType) |
| 3423 : super(const <HInstruction>[], dartType, instructionType); | 3425 : super(const <HInstruction>[], dartType, instructionType); |
| 3424 | 3426 |
| 3425 accept(HVisitor visitor) => visitor.visitDynamicType(this); | 3427 accept(HVisitor visitor) => visitor.visitDynamicType(this); |
| 3426 | 3428 |
| 3427 int typeCode() => HInstruction.DYNAMIC_TYPE_TYPECODE; | 3429 int typeCode() => HInstruction.DYNAMIC_TYPE_TYPECODE; |
| 3428 | 3430 |
| 3429 bool typeEquals(HInstruction other) => other is HDynamicType; | 3431 bool typeEquals(HInstruction other) => other is HDynamicType; |
| 3430 } | 3432 } |
| OLD | NEW |