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

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

Issue 11348177: Cleanup after the interceptor refactoring work, and add a new SSA instruction for an interceptor, s… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 Enqueuer codegen; 8 final Enqueuer codegen;
9 final Enqueuer resolution; 9 final Enqueuer resolution;
10 10
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 397 }
398 398
399 String toString() => 'Enqueuer($name)'; 399 String toString() => 'Enqueuer($name)';
400 400
401 void logSummary(log(message)) { 401 void logSummary(log(message)) {
402 log(isResolutionQueue 402 log(isResolutionQueue
403 ? 'Resolved ${resolvedElements.length} elements.' 403 ? 'Resolved ${resolvedElements.length} elements.'
404 : 'Compiled ${universe.generatedCode.length} methods.'); 404 : 'Compiled ${universe.generatedCode.length} methods.');
405 nativeEnqueuer.logSummary(log); 405 nativeEnqueuer.logSummary(log);
406 } 406 }
407
408 registerUsedSelector(Selector selector) {
409 Element interceptor = compiler.backend.getInterceptor(selector);
410 if (interceptor != null) {
411 registerStaticUse(interceptor);
412 }
413 }
414 } 407 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698