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

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

Issue 10911006: Collect the types used in is-checks in the resolver phase. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 class EnqueueTask extends CompilerTask { 5 class EnqueueTask extends CompilerTask {
6 final Enqueuer codegen; 6 final Enqueuer codegen;
7 final Enqueuer resolution; 7 final Enqueuer resolution;
8 8
9 String get name => 'Enqueue'; 9 String get name => 'Enqueue';
10 10
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 LibraryElement library, 327 LibraryElement library,
328 Type type) { 328 Type type) {
329 task.measure(() { 329 task.measure(() {
330 Selector setter = new Selector.setter(setterName, library); 330 Selector setter = new Selector.setter(setterName, library);
331 registerNewSelector(setterName, 331 registerNewSelector(setterName,
332 new TypedSelector(type, setter), 332 new TypedSelector(type, setter),
333 universe.fieldSetters); 333 universe.fieldSetters);
334 }); 334 });
335 } 335 }
336 336
337 // TODO(ngeoffray): This should get a type. 337 void registerIsCheck(Type type) {
338 void registerIsCheck(Element element) { 338 universe.isChecks.add(type);
339 universe.isChecks.add(element);
340 } 339 }
341 340
342 void forEach(f(WorkItem work)) { 341 void forEach(f(WorkItem work)) {
343 while (!queue.isEmpty()) { 342 while (!queue.isEmpty()) {
344 f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst? 343 f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst?
345 } 344 }
346 } 345 }
347 } 346 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698