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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 RawLibrary* SnapshotReader::NewLibrary() { | 543 RawLibrary* SnapshotReader::NewLibrary() { |
544 ALLOC_NEW_OBJECT(Library, Object::library_class()); | 544 ALLOC_NEW_OBJECT(Library, Object::library_class()); |
545 } | 545 } |
546 | 546 |
547 | 547 |
548 RawLibraryPrefix* SnapshotReader::NewLibraryPrefix() { | 548 RawLibraryPrefix* SnapshotReader::NewLibraryPrefix() { |
549 ALLOC_NEW_OBJECT(LibraryPrefix, Object::library_prefix_class()); | 549 ALLOC_NEW_OBJECT(LibraryPrefix, Object::library_prefix_class()); |
550 } | 550 } |
551 | 551 |
552 | 552 |
| 553 RawNamespace* SnapshotReader::NewNamespace() { |
| 554 ALLOC_NEW_OBJECT(Namespace, Object::namespace_class()); |
| 555 } |
| 556 |
| 557 |
553 RawScript* SnapshotReader::NewScript() { | 558 RawScript* SnapshotReader::NewScript() { |
554 ALLOC_NEW_OBJECT(Script, Object::script_class()); | 559 ALLOC_NEW_OBJECT(Script, Object::script_class()); |
555 } | 560 } |
556 | 561 |
557 | 562 |
558 RawLiteralToken* SnapshotReader::NewLiteralToken() { | 563 RawLiteralToken* SnapshotReader::NewLiteralToken() { |
559 ALLOC_NEW_OBJECT(LiteralToken, Object::literal_token_class()); | 564 ALLOC_NEW_OBJECT(LiteralToken, Object::literal_token_class()); |
560 } | 565 } |
561 | 566 |
562 | 567 |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 | 1180 |
1176 | 1181 |
1177 void MessageWriter::WriteMessage(const Object& obj) { | 1182 void MessageWriter::WriteMessage(const Object& obj) { |
1178 ASSERT(kind() == Snapshot::kMessage); | 1183 ASSERT(kind() == Snapshot::kMessage); |
1179 WriteObject(obj.raw()); | 1184 WriteObject(obj.raw()); |
1180 UnmarkAll(); | 1185 UnmarkAll(); |
1181 } | 1186 } |
1182 | 1187 |
1183 | 1188 |
1184 } // namespace dart | 1189 } // namespace dart |
OLD | NEW |