| 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/bootstrap.h" | 8 #include "vm/bootstrap.h" |
| 9 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 } | 1615 } |
| 1616 | 1616 |
| 1617 | 1617 |
| 1618 uword SnapshotWriter::GetObjectTags(RawObject* raw) { | 1618 uword SnapshotWriter::GetObjectTags(RawObject* raw) { |
| 1619 return raw->ptr()->tags_; | 1619 return raw->ptr()->tags_; |
| 1620 } | 1620 } |
| 1621 | 1621 |
| 1622 | 1622 |
| 1623 #define VM_OBJECT_CLASS_LIST(V) \ | 1623 #define VM_OBJECT_CLASS_LIST(V) \ |
| 1624 V(OneByteString) \ | 1624 V(OneByteString) \ |
| 1625 V(TwoByteString) \ |
| 1625 V(Mint) \ | 1626 V(Mint) \ |
| 1626 V(Bigint) \ | 1627 V(Bigint) \ |
| 1627 V(Double) \ | 1628 V(Double) \ |
| 1628 V(ImmutableArray) \ | 1629 V(ImmutableArray) \ |
| 1629 | 1630 |
| 1630 #define VM_OBJECT_WRITE(clazz) \ | 1631 #define VM_OBJECT_WRITE(clazz) \ |
| 1631 case clazz::kClassId: { \ | 1632 case clazz::kClassId: { \ |
| 1632 object_id = forward_list_->AddObject(zone(), rawobj, kIsSerialized); \ | 1633 object_id = forward_list_->AddObject(zone(), rawobj, kIsSerialized); \ |
| 1633 Raw##clazz* raw_obj = reinterpret_cast<Raw##clazz*>(rawobj); \ | 1634 Raw##clazz* raw_obj = reinterpret_cast<Raw##clazz*>(rawobj); \ |
| 1634 raw_obj->WriteTo(this, object_id, kind(), false); \ | 1635 raw_obj->WriteTo(this, object_id, kind(), false); \ |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2584 if (setjmp(*jump.Set()) == 0) { | 2585 if (setjmp(*jump.Set()) == 0) { |
| 2585 NoSafepointScope no_safepoint; | 2586 NoSafepointScope no_safepoint; |
| 2586 WriteObject(obj.raw()); | 2587 WriteObject(obj.raw()); |
| 2587 } else { | 2588 } else { |
| 2588 ThrowException(exception_type(), exception_msg()); | 2589 ThrowException(exception_type(), exception_msg()); |
| 2589 } | 2590 } |
| 2590 } | 2591 } |
| 2591 | 2592 |
| 2592 | 2593 |
| 2593 } // namespace dart | 2594 } // namespace dart |
| OLD | NEW |