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

Side by Side Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 917033002: Redo "Steps towards making dart2js JS AST templates an indepentent library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 void main(List<String> arguments) { 45 void main(List<String> arguments) {
46 useApi(); 46 useApi();
47 dart2js.main(arguments); 47 dart2js.main(arguments);
48 useConstant(null, null); 48 useConstant(null, null);
49 useNode(null); 49 useNode(null);
50 useUtil(null); 50 useUtil(null);
51 useSetlet(null); 51 useSetlet(null);
52 useImmutableEmptySet(null); 52 useImmutableEmptySet(null);
53 useElementVisitor(new ElementVisitor()); 53 useElementVisitor(new ElementVisitor());
54 useJs(new js.Program(null)); 54 useJsNode(new js.Program(null));
55 useJs(new js.Blob(null)); 55 useJsNode(new js.NamedFunction(null, null));
56 useJs(new js.NamedFunction(null, null)); 56 useJsNode(new js.ArrayHole());
57 useJs(new js.ArrayHole()); 57 useJsOther(new js.SimpleJavaScriptPrintingContext());
58 useJsBackend(null); 58 useJsBackend(null);
59 useConcreteTypesInferrer(null); 59 useConcreteTypesInferrer(null);
60 useColor(); 60 useColor();
61 useFilenames(); 61 useFilenames();
62 useSsa(null); 62 useSsa(null);
63 useCodeBuffer(null); 63 useCodeBuffer(null);
64 usedByTests(); 64 usedByTests();
65 useElements(null, null, null, null, null); 65 useElements(null, null, null, null, null);
66 useIr(null, null, null); 66 useIr(null, null, null);
67 useCompiler(null); 67 useCompiler(null);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 ..visitMixinApplicationElement(null) 163 ..visitMixinApplicationElement(null)
164 ..visitPrefixElement(null) 164 ..visitPrefixElement(null)
165 ..visitScopeContainerElement(null) 165 ..visitScopeContainerElement(null)
166 ..visitTypeDeclarationElement(null) 166 ..visitTypeDeclarationElement(null)
167 ..visitTypeVariableElement(null) 167 ..visitTypeVariableElement(null)
168 ..visitTypedefElement(null) 168 ..visitTypedefElement(null)
169 ..visitVariableElement(null) 169 ..visitVariableElement(null)
170 ..visitWarnOnUseElement(null); 170 ..visitWarnOnUseElement(null);
171 } 171 }
172 172
173 useJs(js.Node node) { 173 useJsNode(js.Node node) {
174 node.asVariableUse(); 174 node.asVariableUse();
175 } 175 }
176 176
177 useJsOther(js.SimpleJavaScriptPrintingContext context) {
178 context.getText();
179 }
180
177 useJsBackend(js_backend.JavaScriptBackend backend) { 181 useJsBackend(js_backend.JavaScriptBackend backend) {
178 backend.assembleCode(null); 182 backend.assembleCode(null);
179 backend.annotations.noInlining(null); 183 backend.annotations.noInlining(null);
180 backend.annotations.trustTypeAnnotations(null); 184 backend.annotations.trustTypeAnnotations(null);
181 backend.annotations.assumeDynamic(null); 185 backend.annotations.assumeDynamic(null);
182 } 186 }
183 187
184 useConcreteTypesInferrer(concrete_types_inferrer.ConcreteTypesInferrer c) { 188 useConcreteTypesInferrer(concrete_types_inferrer.ConcreteTypesInferrer c) {
185 c.debug(); 189 c.debug();
186 } 190 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 287 }
284 288
285 useScript(dart2jslib.Script script) { 289 useScript(dart2jslib.Script script) {
286 script.copyWithFile(null); 290 script.copyWithFile(null);
287 } 291 }
288 292
289 useProgramBuilder(program_builder.ProgramBuilder builder) { 293 useProgramBuilder(program_builder.ProgramBuilder builder) {
290 builder.buildMethodHackForIncrementalCompilation(null); 294 builder.buildMethodHackForIncrementalCompilation(null);
291 builder.buildFieldsHackForIncrementalCompilation(null); 295 builder.buildFieldsHackForIncrementalCompilation(null);
292 } 296 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ('k') | pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698