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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart

Issue 1617083002: Base JavaScript code position computation on JavaScript tracer. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
index fb34faeb1f164cc197d17fb4c028349b2b2f01f9..f2c1ded337f63cafcc2f6e70a12fceec2a1cac9c 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
@@ -74,6 +74,7 @@ import '../../js_backend/js_backend.dart' show
TypeCheck,
TypeChecks,
TypeVariableHandler;
+import '../../js/js_debug.dart';
import '../../universe/call_structure.dart' show
CallStructure;
import '../../universe/selector.dart' show
@@ -1609,9 +1610,8 @@ class Emitter implements js_emitter.Emitter {
outputBuffers[mainOutputUnit] = mainOutput;
- mainOutput.addBuffer(jsAst.prettyPrint(program,
- compiler,
- monitor: compiler.dumpInfoTask));
+ mainOutput.addBuffer(jsAst.createCodeBuffer(
+ program, compiler, monitor: compiler.dumpInfoTask));
if (compiler.deferredMapUri != null) {
outputDeferredMap();
@@ -2055,9 +2055,8 @@ function(originalDescriptor, name, holder, isStatic, globalFunctionsAccess) {
outputBuffers[outputUnit] = output;
- output.addBuffer(jsAst.prettyPrint(outputAsts[outputUnit],
- compiler,
- monitor: compiler.dumpInfoTask));
+ output.addBuffer(jsAst.createCodeBuffer(
+ outputAsts[outputUnit], compiler, monitor: compiler.dumpInfoTask));
// Make a unique hash of the code (before the sourcemaps are added)
// This will be used to retrieve the initializing function from the global
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer_names.dart ('k') | pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698