Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: pkg/compiler/lib/src/ssa/nodes.dart

Issue 2285373003: Fix for issue 27199 (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/compiler/dart2js_extra/27199_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/compiler/dart2js_extra/27199_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698