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

Side by Side Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 1397043002: Introduce BackendImpact to separate enqueueing from data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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/native/ssa.dart ('k') | pkg/compiler/lib/src/resolution/registry.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 library dart2js.resolution.members; 5 library dart2js.resolution.members;
6 6
7 import '../common/names.dart' show 7 import '../common/names.dart' show
8 Selectors; 8 Selectors;
9 import '../compiler.dart' show 9 import '../compiler.dart' show
10 Compiler; 10 Compiler;
(...skipping 3863 matching lines...) Expand 10 before | Expand all | Expand 10 after
3874 registry.registerConstSymbol(nameString); 3874 registry.registerConstSymbol(nameString);
3875 } 3875 }
3876 } 3876 }
3877 } else { 3877 } else {
3878 if (!compiler.mirrorUsageAnalyzerTask.hasMirrorUsage( 3878 if (!compiler.mirrorUsageAnalyzerTask.hasMirrorUsage(
3879 enclosingElement)) { 3879 enclosingElement)) {
3880 reporter.reportHintMessage( 3880 reporter.reportHintMessage(
3881 node.newToken, MessageKind.NON_CONST_BLOAT, 3881 node.newToken, MessageKind.NON_CONST_BLOAT,
3882 {'name': compiler.symbolClass.name}); 3882 {'name': compiler.symbolClass.name});
3883 } 3883 }
3884 registry.registerNewSymbol();
3885 } 3884 }
3886 } else if (isMirrorsUsedConstant) { 3885 } else if (isMirrorsUsedConstant) {
3887 compiler.mirrorUsageAnalyzerTask.validate(node, registry.mapping); 3886 compiler.mirrorUsageAnalyzerTask.validate(node, registry.mapping);
3888 } 3887 }
3889 if (node.isConst) { 3888 if (node.isConst) {
3890 analyzeConstantDeferred(node); 3889 analyzeConstantDeferred(node);
3891 3890
3892 // TODO(johnniwinther): Compute this in the [ConstructorResolver]. 3891 // TODO(johnniwinther): Compute this in the [ConstructorResolver].
3893 // Check that the constructor is not deferred. 3892 // Check that the constructor is not deferred.
3894 Send send = node.send.selector.asSend(); 3893 Send send = node.send.selector.asSend();
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
4691 } 4690 }
4692 return const NoneResult(); 4691 return const NoneResult();
4693 } 4692 }
4694 } 4693 }
4695 4694
4696 /// Looks up [name] in [scope] and unwraps the result. 4695 /// Looks up [name] in [scope] and unwraps the result.
4697 Element lookupInScope(DiagnosticReporter reporter, Node node, 4696 Element lookupInScope(DiagnosticReporter reporter, Node node,
4698 Scope scope, String name) { 4697 Scope scope, String name) {
4699 return Elements.unwrap(scope.lookup(name), reporter, node); 4698 return Elements.unwrap(scope.lookup(name), reporter, node);
4700 } 4699 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/ssa.dart ('k') | pkg/compiler/lib/src/resolution/registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698