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

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

Issue 1245583002: Deferred loading track type-dependencies for is, as and type-annotations. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
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 part of resolution; 5 part of resolution;
6 6
7 /// [ResolutionRegistry] collects all resolution information. It stores node 7 /// [ResolutionRegistry] collects all resolution information. It stores node
8 /// related information in a [TreeElements] mapping and registers calls with 8 /// related information in a [TreeElements] mapping and registers calls with
9 /// [Backend], [World] and [Enqueuer]. 9 /// [Backend], [World] and [Enqueuer].
10 // TODO(johnniwinther): Split this into an interface and implementation class. 10 // TODO(johnniwinther): Split this into an interface and implementation class.
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 backend.resolutionCallbacks.onTypeVariableBoundCheck(this); 391 backend.resolutionCallbacks.onTypeVariableBoundCheck(this);
392 } 392 }
393 393
394 void registerThrowNoSuchMethod() { 394 void registerThrowNoSuchMethod() {
395 backend.resolutionCallbacks.onThrowNoSuchMethod(this); 395 backend.resolutionCallbacks.onThrowNoSuchMethod(this);
396 } 396 }
397 397
398 void registerIsCheck(DartType type) { 398 void registerIsCheck(DartType type) {
399 worldImpact.registerCheckedType(type); 399 worldImpact.registerCheckedType(type);
400 backend.resolutionCallbacks.onIsCheck(type, this); 400 backend.resolutionCallbacks.onIsCheck(type, this);
401 mapping.addRequiredType(type);
401 } 402 }
402 403
403 void registerAsCheck(DartType type) { 404 void registerAsCheck(DartType type) {
404 registerIsCheck(type); 405 registerIsCheck(type);
405 backend.resolutionCallbacks.onAsCheck(type, this); 406 backend.resolutionCallbacks.onAsCheck(type, this);
407 mapping.addRequiredType(type);
406 } 408 }
407 409
408 void registerClosure(LocalFunctionElement element) { 410 void registerClosure(LocalFunctionElement element) {
409 world.registerClosure(element, this); 411 world.registerClosure(element, this);
410 } 412 }
411 413
412 void registerSuperUse(Node node) { 414 void registerSuperUse(Node node) {
413 mapping.addSuperUse(node); 415 mapping.addSuperUse(node);
414 } 416 }
415 417
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 void registerConstSymbol(String name) { 475 void registerConstSymbol(String name) {
474 backend.registerConstSymbol(name, this); 476 backend.registerConstSymbol(name, this);
475 } 477 }
476 478
477 void registerSymbolConstructor() { 479 void registerSymbolConstructor() {
478 backend.resolutionCallbacks.onSymbolConstructor(this); 480 backend.resolutionCallbacks.onSymbolConstructor(this);
479 } 481 }
480 482
481 void registerInstantiatedType(InterfaceType type) { 483 void registerInstantiatedType(InterfaceType type) {
482 world.registerInstantiatedType(type, this); 484 world.registerInstantiatedType(type, this);
485 mapping.addRequiredType(type);
483 } 486 }
484 487
485 void registerAbstractClassInstantiation() { 488 void registerAbstractClassInstantiation() {
486 backend.resolutionCallbacks.onAbstractClassInstantiation(this); 489 backend.resolutionCallbacks.onAbstractClassInstantiation(this);
487 } 490 }
488 491
489 void registerNewSymbol() { 492 void registerNewSymbol() {
490 backend.registerNewSymbol(this); 493 backend.registerNewSymbol(this);
491 } 494 }
492 495
493 void registerRequiredType(DartType type, Element enclosingElement) { 496 void registerRequiredType(DartType type, Element enclosingElement) {
494 backend.registerRequiredType(type, enclosingElement); 497 backend.registerRequiredType(type, enclosingElement);
498 mapping.addRequiredType(type);
495 } 499 }
496 500
497 void registerStringInterpolation() { 501 void registerStringInterpolation() {
498 backend.resolutionCallbacks.onStringInterpolation(this); 502 backend.resolutionCallbacks.onStringInterpolation(this);
499 } 503 }
500 504
501 void registerFallThroughError() { 505 void registerFallThroughError() {
502 backend.resolutionCallbacks.onFallThroughError(this); 506 backend.resolutionCallbacks.onFallThroughError(this);
503 } 507 }
504 508
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 } 567 }
564 568
565 void registerAsyncMarker(FunctionElement element) { 569 void registerAsyncMarker(FunctionElement element) {
566 backend.registerAsyncMarker(element, world, this); 570 backend.registerAsyncMarker(element, world, this);
567 } 571 }
568 572
569 void registerAsyncForIn(AsyncForIn node) { 573 void registerAsyncForIn(AsyncForIn node) {
570 backend.resolutionCallbacks.onAsyncForIn(node, this); 574 backend.resolutionCallbacks.onAsyncForIn(node, this);
571 } 575 }
572 } 576 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/resolution/tree_elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698