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

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

Issue 1292673005: Refactor handling of unqualified static updates. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/resolution/members.dart ('k') | pkg/compiler/lib/src/ssa/builder.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.registry; 5 library dart2js.resolution.registry;
6 6
7 import '../common/backend_api.dart' show 7 import '../common/backend_api.dart' show
8 Backend; 8 Backend;
9 import '../common/registry.dart' show 9 import '../common/registry.dart' show
10 Registry; 10 Registry;
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 backend.resolutionCallbacks.onThrowExpression(this); 562 backend.resolutionCallbacks.onThrowExpression(this);
563 } 563 }
564 564
565 void registerDependency(Element element) { 565 void registerDependency(Element element) {
566 mapping.registerDependency(element); 566 mapping.registerDependency(element);
567 } 567 }
568 568
569 Setlet<Element> get otherDependencies => mapping.otherDependencies; 569 Setlet<Element> get otherDependencies => mapping.otherDependencies;
570 570
571 void registerStaticInvocation(Element element) { 571 void registerStaticInvocation(Element element) {
572 // TODO(johnniwinther): Increase precision of [registerStaticUse] and
573 // [registerDependency].
572 if (element == null) return; 574 if (element == null) return;
573 registerStaticUse(element); 575 registerStaticUse(element);
574 registerDependency(element); 576 registerDependency(element);
575 } 577 }
576 578
577 void registerInstantiation(InterfaceType type) { 579 void registerInstantiation(InterfaceType type) {
578 world.registerInstantiatedType(type, this); 580 world.registerInstantiatedType(type, this);
579 } 581 }
580 582
581 void registerAssert(Send node) { 583 void registerAssert(Send node) {
(...skipping 16 matching lines...) Expand all
598 } 600 }
599 601
600 void registerAsyncMarker(FunctionElement element) { 602 void registerAsyncMarker(FunctionElement element) {
601 backend.registerAsyncMarker(element, world, this); 603 backend.registerAsyncMarker(element, world, this);
602 } 604 }
603 605
604 void registerAsyncForIn(AsyncForIn node) { 606 void registerAsyncForIn(AsyncForIn node) {
605 backend.resolutionCallbacks.onAsyncForIn(node, this); 607 backend.resolutionCallbacks.onAsyncForIn(node, this);
606 } 608 }
607 } 609 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698