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

Unified Diff: src/snapshot-source-sink.h

Issue 780833002: Revert of Encode reservation meta data in the snapshot blob. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@snapshotformat
Patch Set: 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/snapshot-external.cc ('k') | src/snapshot-source-sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot-source-sink.h
diff --git a/src/snapshot-source-sink.h b/src/snapshot-source-sink.h
index f0cf1bb18f5c3d1cd8728e800da5ae4898cb069a..398276fe5fda31f0c81d46d34a4fd1f60982f42b 100644
--- a/src/snapshot-source-sink.h
+++ b/src/snapshot-source-sink.h
@@ -19,13 +19,8 @@
*/
class SnapshotByteSource FINAL {
public:
- SnapshotByteSource(const byte* data, int length)
- : data_(data), length_(length), position_(0) {}
-
- explicit SnapshotByteSource(Vector<const byte> payload)
- : data_(payload.start()), length_(payload.length()), position_(0) {}
-
- ~SnapshotByteSource() {}
+ SnapshotByteSource(const byte* array, int length);
+ ~SnapshotByteSource();
bool HasMore() { return position_ < length_; }
@@ -88,8 +83,8 @@
}
void PutInt(uintptr_t integer, const char* description);
- void PutRaw(const byte* data, int number_of_bytes, const char* description);
- void PutBlob(Vector<const byte> blob, const char* description);
+ void PutRaw(byte* data, int number_of_bytes, const char* description);
+ void PutBlob(byte* data, int number_of_bytes, const char* description);
int Position() { return data_.length(); }
const List<byte>& data() const { return data_; }
« no previous file with comments | « src/snapshot-external.cc ('k') | src/snapshot-source-sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698