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

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

Issue 785303003: Add option for outputting a deferred loading mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 5 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_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index a60666070a0cf83438a3abc8167e44f6a4fd6da8..82b738c4a498c02ddb5ce8d8e51e2cd967e01005 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2307,6 +2307,17 @@ class JavaScriptBackend extends Backend {
// communicate with the spawning isolate.
enqueuer.enableIsolateSupport();
}
+
+ /// Returns a name composed of the main output file name and [name].
floitsch 2015/01/05 15:46:19 Not your comment, but: That describes what it does
sigurdm 2015/01/06 09:02:20 Done.
+ String outputFileName(String name) {
+ assert(name != "");
+ String outPath = compiler.outputUri != null
+ ? compiler.outputUri.path
+ : "out";
+ String outName = outPath.substring(outPath.lastIndexOf('/') + 1);
+ return "${outName}_$name";
+ }
+
}
class JavaScriptResolutionCallbacks extends ResolutionCallbacks {

Powered by Google App Engine
This is Rietveld 408576698