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

Unified Diff: src/snapshot/startup-serializer.cc

Issue 2836623002: [inspector] always include user scripts in the snapshot. (Closed)
Patch Set: rebase Created 3 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 | « src/inspector/v8-debugger-script.cc ('k') | test/inspector/debugger/step-snapshot.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/startup-serializer.cc
diff --git a/src/snapshot/startup-serializer.cc b/src/snapshot/startup-serializer.cc
index 4b27746f8eefa0cce128468249d2d25f526be12b..1d8cd23c839097067b59e9ca9abc4910e48b51bc 100644
--- a/src/snapshot/startup-serializer.cc
+++ b/src/snapshot/startup-serializer.cc
@@ -73,6 +73,9 @@ void StartupSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code,
Address original_address = Foreign::cast(info->getter())->foreign_address();
Foreign::cast(info->js_getter())->set_foreign_address(original_address);
accessor_infos_.Add(info);
+ } else if (obj->IsScript() && Script::cast(obj)->IsUserJavaScript()) {
+ Script::cast(obj)->set_context_data(
+ isolate_->heap()->uninitialized_symbol());
}
// Object has not yet been serialized. Serialize it here.
« no previous file with comments | « src/inspector/v8-debugger-script.cc ('k') | test/inspector/debugger/step-snapshot.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698