| Index: vm/raw_object_snapshot.cc
|
| ===================================================================
|
| --- vm/raw_object_snapshot.cc (revision 2199)
|
| +++ vm/raw_object_snapshot.cc (working copy)
|
| @@ -248,6 +248,7 @@
|
| intptr_t object_id,
|
| Snapshot::Kind kind) {
|
| ASSERT(reader != NULL);
|
| + ASSERT(kind == Snapshot::kMessage);
|
|
|
| // Allocate instantiated type object.
|
| InstantiatedType& instantiated_type =
|
| @@ -270,6 +271,7 @@
|
| intptr_t object_id,
|
| Snapshot::Kind kind) {
|
| ASSERT(writer != NULL);
|
| + ASSERT(kind == Snapshot::kMessage);
|
| SnapshotWriterVisitor visitor(writer);
|
|
|
| // Write out the serialization header value for this object.
|
| @@ -351,6 +353,7 @@
|
| intptr_t object_id,
|
| Snapshot::Kind kind) {
|
| ASSERT(reader != NULL);
|
| + ASSERT(kind == Snapshot::kMessage);
|
|
|
| // Allocate instantiated types object.
|
| InstantiatedTypeArguments& instantiated_type_arguments =
|
| @@ -373,6 +376,7 @@
|
| intptr_t object_id,
|
| Snapshot::Kind kind) {
|
| ASSERT(writer != NULL);
|
| + ASSERT(kind == Snapshot::kMessage);
|
| SnapshotWriterVisitor visitor(writer);
|
|
|
| // Write out the serialization header value for this object.
|
| @@ -798,6 +802,7 @@
|
| intptr_t object_id,
|
| Snapshot::Kind kind) {
|
| ASSERT(reader != NULL);
|
| + ASSERT(kind == Snapshot::kMessage);
|
|
|
| // Allocate context scope object.
|
| intptr_t num_vars = reader->Read<intptr_t>();
|
| @@ -820,6 +825,7 @@
|
| intptr_t object_id,
|
| Snapshot::Kind kind) {
|
| ASSERT(writer != NULL);
|
| + ASSERT(kind == Snapshot::kMessage);
|
| SnapshotWriterVisitor visitor(writer);
|
|
|
| // Write out the serialization header value for this object.
|
| @@ -1344,6 +1350,7 @@
|
| intptr_t object_id,
|
| Snapshot::Kind kind) {
|
| ASSERT(reader != NULL);
|
| + ASSERT(kind == Snapshot::kMessage);
|
|
|
| // Read the length so that we can determine instance size to allocate.
|
| RawSmi* smi_len = GetSmi(reader->Read<intptr_t>());
|
| @@ -1372,6 +1379,7 @@
|
| intptr_t object_id,
|
| Snapshot::Kind kind) {
|
| ASSERT(writer != NULL);
|
| + ASSERT(kind == Snapshot::kMessage);
|
|
|
| // Write out the serialization header value for this object.
|
| writer->WriteObjectHeader(kInlined, object_id);
|
|
|