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

Unified Diff: runtime/vm/clustered_snapshot.cc

Issue 2734323003: Re-landing of "replace TrySync with Metadata". (Closed)
Patch Set: Address review comments 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 | « no previous file | runtime/vm/code_descriptors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/clustered_snapshot.cc
diff --git a/runtime/vm/clustered_snapshot.cc b/runtime/vm/clustered_snapshot.cc
index dc9e0fe45065aae6c6ec7bcc52642f7f52aa3394..19d2e14621a08d49f8ee8b946946b58f5c0daa99 100644
--- a/runtime/vm/clustered_snapshot.cc
+++ b/runtime/vm/clustered_snapshot.cc
@@ -1566,6 +1566,11 @@ class CodeSerializationCluster : public SerializationCluster {
s->Push(code->ptr()->owner_);
s->Push(code->ptr()->exception_handlers_);
s->Push(code->ptr()->pc_descriptors_);
+#if defined(DART_PRECOMPILED_RUNTIME) || defined(DART_PRECOMPILER)
+ s->Push(code->ptr()->catch_entry_.catch_entry_state_maps_);
+#else
+ s->Push(code->ptr()->catch_entry_.variables_);
+#endif
s->Push(code->ptr()->stackmaps_);
s->Push(code->ptr()->inlined_id_to_function_);
s->Push(code->ptr()->code_source_map_);
@@ -1620,6 +1625,11 @@ class CodeSerializationCluster : public SerializationCluster {
s->WriteRef(code->ptr()->owner_);
s->WriteRef(code->ptr()->exception_handlers_);
s->WriteRef(code->ptr()->pc_descriptors_);
+#if defined(DART_PRECOMPILED_RUNTIME) || defined(DART_PRECOMPILER)
+ s->WriteRef(code->ptr()->catch_entry_.catch_entry_state_maps_);
+#else
+ s->WriteRef(code->ptr()->catch_entry_.variables_);
+#endif
s->WriteRef(code->ptr()->stackmaps_);
s->WriteRef(code->ptr()->inlined_id_to_function_);
s->WriteRef(code->ptr()->code_source_map_);
@@ -1690,6 +1700,13 @@ class CodeDeserializationCluster : public DeserializationCluster {
reinterpret_cast<RawExceptionHandlers*>(d->ReadRef());
code->ptr()->pc_descriptors_ =
reinterpret_cast<RawPcDescriptors*>(d->ReadRef());
+#if defined(DART_PRECOMPILED_RUNTIME) || defined(DART_PRECOMPILER)
+ code->ptr()->catch_entry_.catch_entry_state_maps_ =
+ reinterpret_cast<RawTypedData*>(d->ReadRef());
+#else
+ code->ptr()->catch_entry_.variables_ =
+ reinterpret_cast<RawSmi*>(d->ReadRef());
+#endif
code->ptr()->stackmaps_ = reinterpret_cast<RawArray*>(d->ReadRef());
code->ptr()->inlined_id_to_function_ =
reinterpret_cast<RawArray*>(d->ReadRef());
« no previous file with comments | « no previous file | runtime/vm/code_descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698