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

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

Issue 362973002: Revert "Emit declarations for typedefs that are needed by reflection." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.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) 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 typedef ItemCompilationContext ItemCompilationContextCreator(); 7 typedef ItemCompilationContext ItemCompilationContextCreator();
8 8
9 class EnqueueTask extends CompilerTask { 9 class EnqueueTask extends CompilerTask {
10 final ResolutionEnqueuer resolution; 10 final ResolutionEnqueuer resolution;
11 final CodegenEnqueuer codegen; 11 final CodegenEnqueuer codegen;
12 12
13 } else if (element.isTypedef) {
14 TypedefElement typedef = element;
15 typedef.ensureResolved(compiler);
16 String get name => 'Enqueue'; 13 String get name => 'Enqueue';
17 14
18 EnqueueTask(Compiler compiler) 15 EnqueueTask(Compiler compiler)
19 : resolution = new ResolutionEnqueuer( 16 : resolution = new ResolutionEnqueuer(
20 compiler, compiler.backend.createItemCompilationContext), 17 compiler, compiler.backend.createItemCompilationContext),
21 codegen = new CodegenEnqueuer( 18 codegen = new CodegenEnqueuer(
22 compiler, compiler.backend.createItemCompilationContext), 19 compiler, compiler.backend.createItemCompilationContext),
23 super(compiler) { 20 super(compiler) {
24 codegen.task = this; 21 codegen.task = this;
25 resolution.task = this; 22 resolution.task = this;
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 } 849 }
853 CodegenWorkItem workItem = new CodegenWorkItem( 850 CodegenWorkItem workItem = new CodegenWorkItem(
854 element, itemCompilationContextCreator()); 851 element, itemCompilationContextCreator());
855 queue.add(workItem); 852 queue.add(workItem);
856 } 853 }
857 854
858 void _logSpecificSummary(log(message)) { 855 void _logSpecificSummary(log(message)) {
859 log('Compiled ${generatedCode.length} methods.'); 856 log('Compiled ${generatedCode.length} methods.');
860 } 857 }
861 } 858 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698