| Index: runtime/vm/snapshot.h
|
| ===================================================================
|
| --- runtime/vm/snapshot.h (revision 20419)
|
| +++ runtime/vm/snapshot.h (working copy)
|
| @@ -416,7 +416,7 @@
|
| protected:
|
| BaseWriter(uint8_t** buffer,
|
| ReAlloc alloc,
|
| - intptr_t increment_size) : stream_(buffer, alloc, increment_size) {
|
| + intptr_t initial_size) : stream_(buffer, alloc, initial_size) {
|
| ASSERT(buffer != NULL);
|
| ASSERT(alloc != NULL);
|
| }
|
| @@ -445,7 +445,7 @@
|
| SnapshotWriter(Snapshot::Kind kind,
|
| uint8_t** buffer,
|
| ReAlloc alloc,
|
| - intptr_t increment_size);
|
| + intptr_t initial_size);
|
|
|
| public:
|
| // Snapshot kind.
|
| @@ -534,9 +534,9 @@
|
|
|
| class FullSnapshotWriter : public SnapshotWriter {
|
| public:
|
| - static const intptr_t kIncrementSize = 64 * KB;
|
| + static const intptr_t kInitialSize = 64 * KB;
|
| FullSnapshotWriter(uint8_t** buffer, ReAlloc alloc)
|
| - : SnapshotWriter(Snapshot::kFull, buffer, alloc, kIncrementSize) {
|
| + : SnapshotWriter(Snapshot::kFull, buffer, alloc, kInitialSize) {
|
| ASSERT(buffer != NULL);
|
| ASSERT(alloc != NULL);
|
| }
|
| @@ -552,9 +552,9 @@
|
|
|
| class ScriptSnapshotWriter : public SnapshotWriter {
|
| public:
|
| - static const intptr_t kIncrementSize = 64 * KB;
|
| + static const intptr_t kInitialSize = 64 * KB;
|
| ScriptSnapshotWriter(uint8_t** buffer, ReAlloc alloc)
|
| - : SnapshotWriter(Snapshot::kScript, buffer, alloc, kIncrementSize) {
|
| + : SnapshotWriter(Snapshot::kScript, buffer, alloc, kInitialSize) {
|
| ASSERT(buffer != NULL);
|
| ASSERT(alloc != NULL);
|
| }
|
| @@ -570,9 +570,9 @@
|
|
|
| class MessageWriter : public SnapshotWriter {
|
| public:
|
| - static const intptr_t kIncrementSize = 512;
|
| + static const intptr_t kInitialSize = 512;
|
| MessageWriter(uint8_t** buffer, ReAlloc alloc)
|
| - : SnapshotWriter(Snapshot::kMessage, buffer, alloc, kIncrementSize) {
|
| + : SnapshotWriter(Snapshot::kMessage, buffer, alloc, kInitialSize) {
|
| ASSERT(buffer != NULL);
|
| ASSERT(alloc != NULL);
|
| }
|
|
|