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

Unified Diff: runtime/vm/clustered_snapshot.cc

Issue 2683633005: Add exception handler cache to isolate (Closed)
Patch Set: Add unittest Created 3 years, 10 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_generator.cc » ('j') | runtime/vm/exceptions.h » ('J')
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 7c7a061b631cc525b181394d4baf3f20048c9b5d..732282b3340307d73a959a3620f2bdc40f40c5ba 100644
--- a/runtime/vm/clustered_snapshot.cc
+++ b/runtime/vm/clustered_snapshot.cc
@@ -1985,8 +1985,7 @@ class ExceptionHandlersSerializationCluster : public SerializationCluster {
s->WriteRef(handlers->ptr()->handled_types_data_);
uint8_t* data = reinterpret_cast<uint8_t*>(handlers->ptr()->data());
- intptr_t length_in_bytes =
- length * sizeof(RawExceptionHandlers::HandlerInfo);
+ intptr_t length_in_bytes = length * sizeof(HandlerInfo);
s->WriteBytes(data, length_in_bytes);
}
}
@@ -2029,8 +2028,7 @@ class ExceptionHandlersDeserializationCluster : public DeserializationCluster {
reinterpret_cast<RawArray*>(d->ReadRef());
uint8_t* data = reinterpret_cast<uint8_t*>(handlers->ptr()->data());
- intptr_t length_in_bytes =
- length * sizeof(RawExceptionHandlers::HandlerInfo);
+ intptr_t length_in_bytes = length * sizeof(HandlerInfo);
d->ReadBytes(data, length_in_bytes);
}
}
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | runtime/vm/exceptions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698