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 '../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 Loading... |
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 Loading... |
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 } |
OLD | NEW |