| 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/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 ALLOC_NEW_OBJECT(Field, Object::field_class()); | 591 ALLOC_NEW_OBJECT(Field, Object::field_class()); |
| 592 } | 592 } |
| 593 | 593 |
| 594 | 594 |
| 595 RawLibrary* SnapshotReader::NewLibrary() { | 595 RawLibrary* SnapshotReader::NewLibrary() { |
| 596 ALLOC_NEW_OBJECT(Library, Object::library_class()); | 596 ALLOC_NEW_OBJECT(Library, Object::library_class()); |
| 597 } | 597 } |
| 598 | 598 |
| 599 | 599 |
| 600 RawLibraryPrefix* SnapshotReader::NewLibraryPrefix() { | 600 RawLibraryPrefix* SnapshotReader::NewLibraryPrefix() { |
| 601 ALLOC_NEW_OBJECT(LibraryPrefix, Object::library_prefix_class()); | 601 ALLOC_NEW_OBJECT(LibraryPrefix, object_store()->library_prefix_class()); |
| 602 } | 602 } |
| 603 | 603 |
| 604 | 604 |
| 605 RawNamespace* SnapshotReader::NewNamespace() { | 605 RawNamespace* SnapshotReader::NewNamespace() { |
| 606 ALLOC_NEW_OBJECT(Namespace, Object::namespace_class()); | 606 ALLOC_NEW_OBJECT(Namespace, Object::namespace_class()); |
| 607 } | 607 } |
| 608 | 608 |
| 609 | 609 |
| 610 RawScript* SnapshotReader::NewScript() { | 610 RawScript* SnapshotReader::NewScript() { |
| 611 ALLOC_NEW_OBJECT(Script, Object::script_class()); | 611 ALLOC_NEW_OBJECT(Script, Object::script_class()); |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1560 NoGCScope no_gc; | 1560 NoGCScope no_gc; |
| 1561 WriteObject(obj.raw()); | 1561 WriteObject(obj.raw()); |
| 1562 UnmarkAll(); | 1562 UnmarkAll(); |
| 1563 } else { | 1563 } else { |
| 1564 ThrowException(exception_type(), exception_msg()); | 1564 ThrowException(exception_type(), exception_msg()); |
| 1565 } | 1565 } |
| 1566 } | 1566 } |
| 1567 | 1567 |
| 1568 | 1568 |
| 1569 } // namespace dart | 1569 } // namespace dart |
| OLD | NEW |