| Index: src/snapshot.h
|
| diff --git a/src/snapshot.h b/src/snapshot.h
|
| index bedd186e507118f568b7a534669fc81cd0046203..9e53af278740a2befc3dfb3b5d3db96a697faea8 100644
|
| --- a/src/snapshot.h
|
| +++ b/src/snapshot.h
|
| @@ -50,9 +50,25 @@ STATIC_CLASS Snapshot {
|
| // successfully.
|
| static bool WriteToFile(const char* snapshot_file);
|
|
|
| + static const byte* data() { return data_; }
|
| + static int size() { return size_; }
|
| + static int raw_size() { return raw_size_; }
|
| + static void set_raw_data(const byte* raw_data) {
|
| + raw_data_ = raw_data;
|
| + }
|
| + static const byte* context_data() { return context_data_; }
|
| + static int context_size() { return context_size_; }
|
| + static int context_raw_size() { return context_raw_size_; }
|
| + static void set_context_raw_data(
|
| + const byte* context_raw_data) {
|
| + context_raw_data_ = context_raw_data;
|
| + }
|
| +
|
| private:
|
| static const byte data_[];
|
| + static const byte* raw_data_;
|
| static const byte context_data_[];
|
| + static const byte* context_raw_data_;
|
| static const int new_space_used_;
|
| static const int pointer_space_used_;
|
| static const int data_space_used_;
|
| @@ -61,7 +77,9 @@ STATIC_CLASS Snapshot {
|
| static const int cell_space_used_;
|
| static const int large_space_used_;
|
| static const int size_;
|
| + static const int raw_size_;
|
| static const int context_size_;
|
| + static const int context_raw_size_;
|
|
|
| static bool Deserialize(const byte* content, int len);
|
|
|
|
|