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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 12389025: Do not register typechecks against type variables of typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change inCheckContext for typedef contexts. Created 7 years, 9 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 class EnqueueTask extends CompilerTask { 7 class EnqueueTask extends CompilerTask {
8 final ResolutionEnqueuer resolution; 8 final ResolutionEnqueuer resolution;
9 final CodegenEnqueuer codegen; 9 final CodegenEnqueuer codegen;
10 10
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 void registerFieldGetter(Element element) { 350 void registerFieldGetter(Element element) {
351 universe.fieldGetters.add(element); 351 universe.fieldGetters.add(element);
352 } 352 }
353 353
354 void registerFieldSetter(Element element) { 354 void registerFieldSetter(Element element) {
355 universe.fieldSetters.add(element); 355 universe.fieldSetters.add(element);
356 } 356 }
357 357
358 void registerIsCheck(DartType type) { 358 void registerIsCheck(DartType type) {
359 assert(type.kind != TypeKind.TYPE_VARIABLE ||
360 !type.element.enclosingElement.isTypedef());
359 universe.isChecks.add(type); 361 universe.isChecks.add(type);
360 compiler.backend.registerIsCheck(type, this); 362 compiler.backend.registerIsCheck(type, this);
361 } 363 }
362 364
363 void registerAsCheck(DartType type) { 365 void registerAsCheck(DartType type) {
364 registerIsCheck(type); 366 registerIsCheck(type);
365 compiler.backend.registerAsCheck(type); 367 compiler.backend.registerAsCheck(type);
366 } 368 }
367 369
368 void forEach(f(WorkItem work)); 370 void forEach(f(WorkItem work));
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 while(!queue.isEmpty) { 533 while(!queue.isEmpty) {
532 // TODO(johnniwinther): Find an optimal process order for codegen. 534 // TODO(johnniwinther): Find an optimal process order for codegen.
533 f(queue.removeLast()); 535 f(queue.removeLast());
534 } 536 }
535 } 537 }
536 538
537 void _logSpecificSummary(log(message)) { 539 void _logSpecificSummary(log(message)) {
538 log('Compiled ${generatedCode.length} methods.'); 540 log('Compiled ${generatedCode.length} methods.');
539 } 541 }
540 } 542 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698