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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 1100723002: Add SourceInformationFactory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/js/js.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/task.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index ebda3742700f794a926dadff8542b7fa0f5a0d30..4a91be0f4df250e5f3f8122811cdfa111c7842da 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -599,7 +599,9 @@ class JavaScriptBackend extends Backend {
bool enabledNoSuchMethod = false;
- JavaScriptBackend(Compiler compiler, bool generateSourceMap)
+ JavaScriptBackend(Compiler compiler,
+ SourceInformationFactory sourceInformationFactory,
+ {bool generateSourceMap: true})
: namer = determineNamer(compiler),
oneShotInterceptors = new Map<String, Selector>(),
interceptedElements = new Map<String, Set<Element>>(),
@@ -615,8 +617,8 @@ class JavaScriptBackend extends Backend {
patchResolverTask = new PatchResolverTask(compiler);
functionCompiler = compiler.useCpsIr
? new CpsFunctionCompiler(
- compiler, this, generateSourceMap: generateSourceMap)
- : new SsaFunctionCompiler(this, generateSourceMap);
+ compiler, this, sourceInformationFactory)
+ : new SsaFunctionCompiler(this, sourceInformationFactory);
}
ConstantSystem get constantSystem => constants.constantSystem;
« no previous file with comments | « pkg/compiler/lib/src/js/js.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698