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

Unified Diff: src/serialize.h

Issue 787033002: Use same blob format for internal and external snapshots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comments Created 6 years 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/natives-external.cc ('k') | src/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/serialize.h
diff --git a/src/serialize.h b/src/serialize.h
index 0c3465033388d00f84efe9b1022235751c4aaa0e..c524fcf5d03b18dc6ea47a036f88d92eda7ebdda 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -865,8 +865,8 @@ class SnapshotData : public SerializedData {
SnapshotData(const SnapshotByteSink& sink, const Serializer& ser);
// Used when consuming.
- explicit SnapshotData(const byte* data, int size)
- : SerializedData(const_cast<byte*>(data), size) {
+ explicit SnapshotData(const Vector<const byte> snapshot)
+ : SerializedData(const_cast<byte*>(snapshot.begin()), snapshot.length()) {
CHECK(IsSane());
}
« no previous file with comments | « src/natives-external.cc ('k') | src/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698