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

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

Issue 2839223003: Use sourceElement when eliminating Phis (Closed)
Patch Set: dartfmt Created 3 years, 7 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 | « no previous file | pkg/compiler/lib/src/ssa/optimize.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 '../common_elements.dart' show CommonElements; 7 import '../common_elements.dart' show CommonElements;
8 import '../compiler.dart' show Compiler; 8 import '../compiler.dart' show Compiler;
9 import '../constants/constant_system.dart'; 9 import '../constants/constant_system.dart';
10 import '../constants/values.dart'; 10 import '../constants/values.dart';
(...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after
2492 } 2492 }
2493 2493
2494 toString() => 'parameter ${sourceElement.name}'; 2494 toString() => 'parameter ${sourceElement.name}';
2495 accept(HVisitor visitor) => visitor.visitParameterValue(this); 2495 accept(HVisitor visitor) => visitor.visitParameterValue(this);
2496 } 2496 }
2497 2497
2498 class HThis extends HParameterValue { 2498 class HThis extends HParameterValue {
2499 HThis(ThisLocal element, TypeMask type) : super(element, type); 2499 HThis(ThisLocal element, TypeMask type) : super(element, type);
2500 2500
2501 ThisLocal get sourceElement => super.sourceElement; 2501 ThisLocal get sourceElement => super.sourceElement;
2502 void set sourceElement(ThisLocal local) {
2503 super.sourceElement = local;
2504 }
2502 2505
2503 accept(HVisitor visitor) => visitor.visitThis(this); 2506 accept(HVisitor visitor) => visitor.visitThis(this);
2504 2507
2505 bool isCodeMotionInvariant() => true; 2508 bool isCodeMotionInvariant() => true;
2506 2509
2507 bool isInterceptor(ClosedWorld closedWorld) { 2510 bool isInterceptor(ClosedWorld closedWorld) {
2508 return closedWorld.interceptorData 2511 return closedWorld.interceptorData
2509 .isInterceptedClass(sourceElement.enclosingClass); 2512 .isInterceptedClass(sourceElement.enclosingClass);
2510 } 2513 }
2511 2514
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
3528 // ignore: MISSING_RETURN 3531 // ignore: MISSING_RETURN
3529 String get kindAsString { 3532 String get kindAsString {
3530 switch (kind) { 3533 switch (kind) {
3531 case TypeInfoExpressionKind.COMPLETE: 3534 case TypeInfoExpressionKind.COMPLETE:
3532 return 'COMPLETE'; 3535 return 'COMPLETE';
3533 case TypeInfoExpressionKind.INSTANCE: 3536 case TypeInfoExpressionKind.INSTANCE:
3534 return 'INSTANCE'; 3537 return 'INSTANCE';
3535 } 3538 }
3536 } 3539 }
3537 } 3540 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698