| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/snapshot.h" | 5 #include "vm/snapshot.h" |
| 6 | 6 |
| 7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "vm/bigint_operations.h" | 8 #include "vm/bigint_operations.h" |
| 9 #include "vm/bootstrap.h" | 9 #include "vm/bootstrap.h" |
| 10 #include "vm/exceptions.h" | 10 #include "vm/exceptions.h" |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 return reinterpret_cast<Raw##type*>( \ | 504 return reinterpret_cast<Raw##type*>( \ |
| 505 AllocateUninitialized(cls_, type::InstanceSize())); \ | 505 AllocateUninitialized(cls_, type::InstanceSize())); \ |
| 506 | 506 |
| 507 | 507 |
| 508 RawUnresolvedClass* SnapshotReader::NewUnresolvedClass() { | 508 RawUnresolvedClass* SnapshotReader::NewUnresolvedClass() { |
| 509 ALLOC_NEW_OBJECT(UnresolvedClass, Object::unresolved_class_class()); | 509 ALLOC_NEW_OBJECT(UnresolvedClass, Object::unresolved_class_class()); |
| 510 } | 510 } |
| 511 | 511 |
| 512 | 512 |
| 513 RawType* SnapshotReader::NewType() { | 513 RawType* SnapshotReader::NewType() { |
| 514 ALLOC_NEW_OBJECT(Type, Object::type_class()); | 514 ALLOC_NEW_OBJECT(Type, object_store()->type_class()); |
| 515 } | 515 } |
| 516 | 516 |
| 517 | 517 |
| 518 RawTypeParameter* SnapshotReader::NewTypeParameter() { | 518 RawTypeParameter* SnapshotReader::NewTypeParameter() { |
| 519 ALLOC_NEW_OBJECT(TypeParameter, Object::type_parameter_class()); | 519 ALLOC_NEW_OBJECT(TypeParameter, object_store()->type_parameter_class()); |
| 520 } | 520 } |
| 521 | 521 |
| 522 | 522 |
| 523 RawPatchClass* SnapshotReader::NewPatchClass() { | 523 RawPatchClass* SnapshotReader::NewPatchClass() { |
| 524 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class()); | 524 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class()); |
| 525 } | 525 } |
| 526 | 526 |
| 527 | 527 |
| 528 RawClosureData* SnapshotReader::NewClosureData() { | 528 RawClosureData* SnapshotReader::NewClosureData() { |
| 529 ALLOC_NEW_OBJECT(ClosureData, Object::closure_data_class()); | 529 ALLOC_NEW_OBJECT(ClosureData, Object::closure_data_class()); |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 | 1185 |
| 1186 | 1186 |
| 1187 void MessageWriter::WriteMessage(const Object& obj) { | 1187 void MessageWriter::WriteMessage(const Object& obj) { |
| 1188 ASSERT(kind() == Snapshot::kMessage); | 1188 ASSERT(kind() == Snapshot::kMessage); |
| 1189 WriteObject(obj.raw()); | 1189 WriteObject(obj.raw()); |
| 1190 UnmarkAll(); | 1190 UnmarkAll(); |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 | 1193 |
| 1194 } // namespace dart | 1194 } // namespace dart |
| OLD | NEW |