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

Unified Diff: runtime/vm/snapshot.h

Issue 12578009: - Canonicalize types, type_arguments only when the object is marked as being from the core librarie… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698