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/bigint_operations.h" | 5 #include "vm/bigint_operations.h" |
6 #include "vm/object.h" | 6 #include "vm/object.h" |
7 #include "vm/object_store.h" | 7 #include "vm/object_store.h" |
8 #include "vm/snapshot.h" | 8 #include "vm/snapshot.h" |
9 #include "vm/stub_code.h" | 9 #include "vm/stub_code.h" |
10 #include "vm/symbols.h" | 10 #include "vm/symbols.h" |
(...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2686 if (kind == Snapshot::kMessage) { | 2686 if (kind == Snapshot::kMessage) { |
2687 // We do not allow objects with native fields in an isolate message. | 2687 // We do not allow objects with native fields in an isolate message. |
2688 writer->SetWriteException(Exceptions::kArgument, | 2688 writer->SetWriteException(Exceptions::kArgument, |
2689 "Illegal argument in isolate message" | 2689 "Illegal argument in isolate message" |
2690 " : (object is a MirrorReference)"); | 2690 " : (object is a MirrorReference)"); |
2691 } else { | 2691 } else { |
2692 UNREACHABLE(); | 2692 UNREACHABLE(); |
2693 } | 2693 } |
2694 } | 2694 } |
2695 | 2695 |
| 2696 |
| 2697 RawUserTag* UserTag::ReadFrom(SnapshotReader* reader, |
| 2698 intptr_t object_id, |
| 2699 intptr_t tags, |
| 2700 Snapshot::Kind kind) { |
| 2701 UNREACHABLE(); |
| 2702 return UserTag::null(); |
| 2703 } |
| 2704 |
| 2705 |
| 2706 void RawUserTag::WriteTo(SnapshotWriter* writer, |
| 2707 intptr_t object_id, |
| 2708 Snapshot::Kind kind) { |
| 2709 if (kind == Snapshot::kMessage) { |
| 2710 // We do not allow objects with native fields in an isolate message. |
| 2711 writer->SetWriteException(Exceptions::kArgument, |
| 2712 "Illegal argument in isolate message" |
| 2713 " : (object is a UserTag)"); |
| 2714 } else { |
| 2715 UNREACHABLE(); |
| 2716 } |
| 2717 } |
| 2718 |
2696 } // namespace dart | 2719 } // namespace dart |
OLD | NEW |