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

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

Issue 1226733010: dart2js: Remove oldEmitter field in emitter-task. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 ..lookupLibrary(null); 294 ..lookupLibrary(null);
295 compiler.forgetElement(null); 295 compiler.forgetElement(null);
296 compiler.backend.constantCompilerTask.copyConstantValues(null); 296 compiler.backend.constantCompilerTask.copyConstantValues(null);
297 } 297 }
298 298
299 useTypes() { 299 useTypes() {
300 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); 300 new dart_types.ResolvedTypedefType(null, null, null).unalias(null);
301 } 301 }
302 302
303 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { 303 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) {
304 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); 304 js_emitter.OldEmitter fullEmitter = codeEmitterTask.emitter;
305 codeEmitterTask.oldEmitter. 305 fullEmitter.clearCspPrecompiledNodes();
306 buildLazilyInitializedStaticField(null, isolateProperties: null); 306 fullEmitter.buildLazilyInitializedStaticField(null, isolateProperties: null);
307 } 307 }
308 308
309 useScript(dart2jslib.Script script) { 309 useScript(dart2jslib.Script script) {
310 script.copyWithFile(null); 310 script.copyWithFile(null);
311 } 311 }
312 312
313 useProgramBuilder(program_builder.ProgramBuilder builder) { 313 useProgramBuilder(program_builder.ProgramBuilder builder) {
314 builder.buildMethodHackForIncrementalCompilation(null); 314 builder.buildMethodHackForIncrementalCompilation(null);
315 builder.buildFieldsHackForIncrementalCompilation(null); 315 builder.buildFieldsHackForIncrementalCompilation(null);
316 } 316 }
(...skipping 10 matching lines...) Expand all
327 327
328 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 328 class TreeVisitor1 extends tree_ir.ExpressionVisitor1
329 with tree_ir.StatementVisitor1 { 329 with tree_ir.StatementVisitor1 {
330 noSuchMethod(inv) {} 330 noSuchMethod(inv) {}
331 } 331 }
332 332
333 useTreeVisitors() { 333 useTreeVisitors() {
334 new TreeVisitor1().visitExpression(null, null); 334 new TreeVisitor1().visitExpression(null, null);
335 new TreeVisitor1().visitStatement(null, null); 335 new TreeVisitor1().visitStatement(null, null);
336 } 336 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/code_emitter_task.dart ('k') | pkg/dart2js_incremental/lib/caching_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698