| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 '../elements/resolution_types.dart'; | 8 import '../elements/resolution_types.dart'; |
| 9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 10 import '../elements/entities.dart'; |
| 10 import '../io/source_information.dart'; | 11 import '../io/source_information.dart'; |
| 11 import '../js/js.dart' as js; | 12 import '../js/js.dart' as js; |
| 12 import '../js_backend/js_backend.dart'; | 13 import '../js_backend/js_backend.dart'; |
| 13 import '../native/native.dart' as native; | 14 import '../native/native.dart' as native; |
| 14 import '../tree/tree.dart' as ast; | 15 import '../tree/tree.dart' as ast; |
| 15 import '../types/types.dart'; | 16 import '../types/types.dart'; |
| 16 import '../world.dart' show ClosedWorld; | 17 import '../world.dart' show ClosedWorld; |
| 17 | 18 |
| 18 import 'graph_builder.dart'; | 19 import 'graph_builder.dart'; |
| 19 import 'nodes.dart'; | 20 import 'nodes.dart'; |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 class SyntheticLocal extends Local { | 665 class SyntheticLocal extends Local { |
| 665 final String name; | 666 final String name; |
| 666 final ExecutableElement executableContext; | 667 final ExecutableElement executableContext; |
| 667 | 668 |
| 668 // Avoid slow Object.hashCode. | 669 // Avoid slow Object.hashCode. |
| 669 final int hashCode = _nextHashCode = (_nextHashCode + 1).toUnsigned(30); | 670 final int hashCode = _nextHashCode = (_nextHashCode + 1).toUnsigned(30); |
| 670 static int _nextHashCode = 0; | 671 static int _nextHashCode = 0; |
| 671 | 672 |
| 672 SyntheticLocal(this.name, this.executableContext); | 673 SyntheticLocal(this.name, this.executableContext); |
| 673 | 674 |
| 675 @override |
| 676 MemberElement get memberContext => executableContext.memberContext; |
| 677 |
| 674 toString() => 'SyntheticLocal($name)'; | 678 toString() => 'SyntheticLocal($name)'; |
| 675 } | 679 } |
| OLD | NEW |