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

Side by Side Diff: tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart

Issue 1417323005: Rename Compiler.runCompiler -> runInternal. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library sourcemap.helper; 5 library sourcemap.helper;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:compiler/compiler_new.dart'; 8 import 'package:compiler/compiler_new.dart';
9 import 'package:compiler/src/apiimpl.dart' as api; 9 import 'package:compiler/src/apiimpl.dart' as api;
10 import 'package:compiler/src/null_compiler_output.dart' show NullSink; 10 import 'package:compiler/src/null_compiler_output.dart' show NullSink;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 ..addAll(options)); 127 ..addAll(options));
128 if (options.contains('--disable-inlining')) { 128 if (options.contains('--disable-inlining')) {
129 if (verbose) print('Inlining disabled'); 129 if (verbose) print('Inlining disabled');
130 compiler.disableInlining = true; 130 compiler.disableInlining = true;
131 } 131 }
132 132
133 JavaScriptBackend backend = compiler.backend; 133 JavaScriptBackend backend = compiler.backend;
134 var handler = compiler.handler; 134 var handler = compiler.handler;
135 SourceFileProvider sourceFileProvider = handler.provider; 135 SourceFileProvider sourceFileProvider = handler.provider;
136 sourceFileManager = new ProviderSourceFileManager(sourceFileProvider); 136 sourceFileManager = new ProviderSourceFileManager(sourceFileProvider);
137 await compiler.runCompiler(inputUri); 137 await compiler.run(inputUri);
138 138
139 List<SourceMapInfo> infoList = <SourceMapInfo>[]; 139 List<SourceMapInfo> infoList = <SourceMapInfo>[];
140 backend.generatedCode.forEach((Element element, js.Expression node) { 140 backend.generatedCode.forEach((Element element, js.Expression node) {
141 js.JavaScriptPrintingOptions options = 141 js.JavaScriptPrintingOptions options =
142 new js.JavaScriptPrintingOptions(); 142 new js.JavaScriptPrintingOptions();
143 JavaScriptSourceInformationStrategy sourceInformationStrategy = 143 JavaScriptSourceInformationStrategy sourceInformationStrategy =
144 compiler.backend.sourceInformationStrategy; 144 compiler.backend.sourceInformationStrategy;
145 NodeToSourceLocationsMap nodeMap = new NodeToSourceLocationsMap(); 145 NodeToSourceLocationsMap nodeMap = new NodeToSourceLocationsMap();
146 SourceInformationProcessor sourceInformationProcessor = 146 SourceInformationProcessor sourceInformationProcessor =
147 sourceInformationStrategy.createProcessor(nodeMap); 147 sourceInformationStrategy.createProcessor(nodeMap);
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 this.jsCode, 329 this.jsCode,
330 this.sourceLocation, 330 this.sourceLocation,
331 this.dartCode, 331 this.dartCode,
332 {this.isMissing: false}); 332 {this.isMissing: false});
333 333
334 String toString() { 334 String toString() {
335 return 'CodePoint[kind=$kind,js=$jsCode,dart=$dartCode,' 335 return 'CodePoint[kind=$kind,js=$jsCode,dart=$dartCode,'
336 'location=$sourceLocation]'; 336 'location=$sourceLocation]';
337 } 337 }
338 } 338 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698