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

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

Issue 2667473003: Move Entity and Local to entities.dart (Closed)
Patch Set: Created 3 years, 10 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/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/ssa/nodes.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) 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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698