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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 RawType* SnapshotReader::NewType() { | 485 RawType* SnapshotReader::NewType() { |
486 ALLOC_NEW_OBJECT(Type, Object::type_class()); | 486 ALLOC_NEW_OBJECT(Type, Object::type_class()); |
487 } | 487 } |
488 | 488 |
489 | 489 |
490 RawTypeParameter* SnapshotReader::NewTypeParameter() { | 490 RawTypeParameter* SnapshotReader::NewTypeParameter() { |
491 ALLOC_NEW_OBJECT(TypeParameter, Object::type_parameter_class()); | 491 ALLOC_NEW_OBJECT(TypeParameter, Object::type_parameter_class()); |
492 } | 492 } |
493 | 493 |
494 | 494 |
| 495 RawPatchClass* SnapshotReader::NewPatchClass() { |
| 496 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class()); |
| 497 } |
| 498 |
| 499 |
495 RawFunction* SnapshotReader::NewFunction() { | 500 RawFunction* SnapshotReader::NewFunction() { |
496 ALLOC_NEW_OBJECT(Function, Object::function_class()); | 501 ALLOC_NEW_OBJECT(Function, Object::function_class()); |
497 } | 502 } |
498 | 503 |
499 | 504 |
500 RawField* SnapshotReader::NewField() { | 505 RawField* SnapshotReader::NewField() { |
501 ALLOC_NEW_OBJECT(Field, Object::field_class()); | 506 ALLOC_NEW_OBJECT(Field, Object::field_class()); |
502 } | 507 } |
503 | 508 |
504 | 509 |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 RawObject* raw_obj = *current; | 1120 RawObject* raw_obj = *current; |
1116 if (as_references_) { | 1121 if (as_references_) { |
1117 writer_->WriteObjectRef(raw_obj); | 1122 writer_->WriteObjectRef(raw_obj); |
1118 } else { | 1123 } else { |
1119 writer_->WriteObjectImpl(raw_obj); | 1124 writer_->WriteObjectImpl(raw_obj); |
1120 } | 1125 } |
1121 } | 1126 } |
1122 } | 1127 } |
1123 | 1128 |
1124 } // namespace dart | 1129 } // namespace dart |
OLD | NEW |