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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart

Issue 2747513003: Inline source maps as part of each script. (Closed)
Patch Set: Inline source maps as part of each script. Created 3 years, 9 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/dev_compiler/tool/build_sdk.sh ('k') | pkg/dev_compiler/web/stack_trace_mapper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
index dc776c86d689a9ee2e75840b9895e580f8f76cdb..fc156363c3dd7b4b305b8798a3296115612e1b2f 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
@@ -208,11 +208,16 @@ void tagLazy(value, compute) {
}
var _loadedModules = JS('', 'new Map()');
+var _loadedSourceMaps = JS('', 'new Map()');
List getModuleNames() {
return JS('', 'Array.from(#.keys())', _loadedModules);
}
+String getSourceMap(module) {
+ return JS('String', '#.get(#)', _loadedSourceMaps, module);
+}
+
/// Return all library objects in the specified module.
getModuleLibraries(String name) {
var module = JS('', '#.get(#)', _loadedModules, name);
@@ -222,6 +227,7 @@ getModuleLibraries(String name) {
}
/// Track all libraries
-void trackLibraries(String moduleName, libraries) {
+void trackLibraries(String moduleName, libraries, sourceMap) {
+ JS('', '#.set(#, #)', _loadedSourceMaps, moduleName, sourceMap);
JS('', '#.set(#, #)', _loadedModules, moduleName, libraries);
-}
+}
« no previous file with comments | « pkg/dev_compiler/tool/build_sdk.sh ('k') | pkg/dev_compiler/web/stack_trace_mapper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698