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

Side by Side Diff: pkg/compiler/tool/perf.dart

Issue 2932793005: Rename FrontEndStrategy to FrontendStrategy (Closed)
Patch Set: Created 3 years, 6 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 /// An entrypoint used to run portions of dart2js and measure its performance. 5 /// An entrypoint used to run portions of dart2js and measure its performance.
6 library compiler.tool.perf; 6 library compiler.tool.perf;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 class MyCompiler extends CompilerImpl { 337 class MyCompiler extends CompilerImpl {
338 MyCompiler(CompilerInput provider, CompilerDiagnostics handler, 338 MyCompiler(CompilerInput provider, CompilerDiagnostics handler,
339 CompilerOptions options) 339 CompilerOptions options)
340 : super(provider, null, handler, options) {} 340 : super(provider, null, handler, options) {}
341 341
342 /// Performs the compilation when all libraries have been loaded. 342 /// Performs the compilation when all libraries have been loaded.
343 void compileLoadedLibraries(LibraryEntity rootLibrary) => 343 void compileLoadedLibraries(LibraryEntity rootLibrary) =>
344 selfTask.measureSubtask('KernelCompiler.compileLoadedLibraries', () { 344 selfTask.measureSubtask('KernelCompiler.compileLoadedLibraries', () {
345 ResolutionEnqueuer resolutionEnqueuer = startResolution(); 345 ResolutionEnqueuer resolutionEnqueuer = startResolution();
346 WorldImpactBuilderImpl mainImpact = new WorldImpactBuilderImpl(); 346 WorldImpactBuilderImpl mainImpact = new WorldImpactBuilderImpl();
347 mainFunction = frontEndStrategy.computeMain(rootLibrary, mainImpact); 347 mainFunction = frontendStrategy.computeMain(rootLibrary, mainImpact);
348 mirrorUsageAnalyzerTask.analyzeUsage(mainApp); 348 mirrorUsageAnalyzerTask.analyzeUsage(mainApp);
349 349
350 deferredLoadTask.beforeResolution(this); 350 deferredLoadTask.beforeResolution(this);
351 impactStrategy = backend.createImpactStrategy( 351 impactStrategy = backend.createImpactStrategy(
352 supportDeferredLoad: deferredLoadTask.isProgramSplit, 352 supportDeferredLoad: deferredLoadTask.isProgramSplit,
353 supportDumpInfo: options.dumpInfo, 353 supportDumpInfo: options.dumpInfo,
354 supportSerialization: serialization.supportSerialization); 354 supportSerialization: serialization.supportSerialization);
355 355
356 phase = Compiler.PHASE_RESOLVING; 356 phase = Compiler.PHASE_RESOLVING;
357 resolutionEnqueuer.applyImpact(mainImpact); 357 resolutionEnqueuer.applyImpact(mainImpact);
(...skipping 18 matching lines...) Expand all
376 print('compilation failed!'); 376 print('compilation failed!');
377 exit(1); 377 exit(1);
378 } 378 }
379 379
380 backend.onResolutionEnd(); 380 backend.onResolutionEnd();
381 closeResolution(); 381 closeResolution();
382 var program = (backend as dynamic).kernelTask.program; 382 var program = (backend as dynamic).kernelTask.program;
383 print('total libraries: ${program.libraries.length}'); 383 print('total libraries: ${program.libraries.length}');
384 }); 384 });
385 } 385 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_strategy.dart ('k') | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698