| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/visitor.h" | 9 #include "vm/visitor.h" |
| 10 | 10 |
| (...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 | 971 |
| 972 // Serialize number of variables. | 972 // Serialize number of variables. |
| 973 writer->WriteIntptrValue(ptr()->num_variables_); | 973 writer->WriteIntptrValue(ptr()->num_variables_); |
| 974 | 974 |
| 975 // Write out all the object pointer fields. | 975 // Write out all the object pointer fields. |
| 976 SnapshotWriterVisitor visitor(writer); | 976 SnapshotWriterVisitor visitor(writer); |
| 977 visitor.VisitPointers(from(), to(ptr()->num_variables_)); | 977 visitor.VisitPointers(from(), to(ptr()->num_variables_)); |
| 978 } | 978 } |
| 979 | 979 |
| 980 | 980 |
| 981 RawError* Error::ReadFrom(SnapshotReader* reader, |
| 982 intptr_t object_id, |
| 983 intptr_t tags, |
| 984 Snapshot::Kind kind) { |
| 985 UNREACHABLE(); |
| 986 return Error::null(); |
| 987 } |
| 988 |
| 989 |
| 990 void RawError::WriteTo(SnapshotWriter* writer, |
| 991 intptr_t object_id, |
| 992 Snapshot::Kind kind) { |
| 993 UNREACHABLE(); |
| 994 } |
| 995 |
| 996 |
| 997 RawApiError* ApiError::ReadFrom(SnapshotReader* reader, |
| 998 intptr_t object_id, |
| 999 intptr_t tags, |
| 1000 Snapshot::Kind kind) { |
| 1001 UNIMPLEMENTED(); |
| 1002 return ApiError::null(); |
| 1003 } |
| 1004 |
| 1005 |
| 1006 void RawApiError::WriteTo(SnapshotWriter* writer, |
| 1007 intptr_t object_id, |
| 1008 Snapshot::Kind kind) { |
| 1009 UNIMPLEMENTED(); |
| 1010 } |
| 1011 |
| 1012 |
| 1013 RawLanguageError* LanguageError::ReadFrom(SnapshotReader* reader, |
| 1014 intptr_t object_id, |
| 1015 intptr_t tags, |
| 1016 Snapshot::Kind kind) { |
| 1017 UNIMPLEMENTED(); |
| 1018 return LanguageError::null(); |
| 1019 } |
| 1020 |
| 1021 |
| 1022 void RawLanguageError::WriteTo(SnapshotWriter* writer, |
| 1023 intptr_t object_id, |
| 1024 Snapshot::Kind kind) { |
| 1025 UNIMPLEMENTED(); |
| 1026 } |
| 1027 |
| 1028 |
| 981 RawUnhandledException* UnhandledException::ReadFrom(SnapshotReader* reader, | 1029 RawUnhandledException* UnhandledException::ReadFrom(SnapshotReader* reader, |
| 982 intptr_t object_id, | 1030 intptr_t object_id, |
| 983 intptr_t tags, | 1031 intptr_t tags, |
| 984 Snapshot::Kind kind) { | 1032 Snapshot::Kind kind) { |
| 985 UNIMPLEMENTED(); | 1033 UNIMPLEMENTED(); |
| 986 return UnhandledException::null(); | 1034 return UnhandledException::null(); |
| 987 } | 1035 } |
| 988 | 1036 |
| 989 | 1037 |
| 990 void RawUnhandledException::WriteTo(SnapshotWriter* writer, | 1038 void RawUnhandledException::WriteTo(SnapshotWriter* writer, |
| 991 intptr_t object_id, | 1039 intptr_t object_id, |
| 992 Snapshot::Kind kind) { | 1040 Snapshot::Kind kind) { |
| 993 UNIMPLEMENTED(); | 1041 UNIMPLEMENTED(); |
| 994 } | 1042 } |
| 995 | 1043 |
| 996 | 1044 |
| 997 RawApiError* ApiError::ReadFrom(SnapshotReader* reader, | 1045 RawUnwindError* UnwindError::ReadFrom(SnapshotReader* reader, |
| 998 intptr_t object_id, | 1046 intptr_t object_id, |
| 999 intptr_t tags, | 1047 intptr_t tags, |
| 1000 Snapshot::Kind kind) { | 1048 Snapshot::Kind kind) { |
| 1001 UNIMPLEMENTED(); | 1049 UNIMPLEMENTED(); |
| 1002 return ApiError::null(); | 1050 return UnwindError::null(); |
| 1003 } | 1051 } |
| 1004 | 1052 |
| 1005 | 1053 |
| 1006 void RawApiError::WriteTo(SnapshotWriter* writer, | 1054 void RawUnwindError::WriteTo(SnapshotWriter* writer, |
| 1007 intptr_t object_id, | 1055 intptr_t object_id, |
| 1008 Snapshot::Kind kind) { | 1056 Snapshot::Kind kind) { |
| 1009 UNIMPLEMENTED(); | 1057 UNIMPLEMENTED(); |
| 1010 } | 1058 } |
| 1011 | 1059 |
| 1012 | 1060 |
| 1013 RawInstance* Instance::ReadFrom(SnapshotReader* reader, | 1061 RawInstance* Instance::ReadFrom(SnapshotReader* reader, |
| 1014 intptr_t object_id, | 1062 intptr_t object_id, |
| 1015 intptr_t tags, | 1063 intptr_t tags, |
| 1016 Snapshot::Kind kind) { | 1064 Snapshot::Kind kind) { |
| 1017 UNREACHABLE(); | 1065 UNREACHABLE(); |
| 1018 return Instance::null(); | 1066 return Instance::null(); |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1614 // Write out all the other fields. | 1662 // Write out all the other fields. |
| 1615 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); | 1663 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); |
| 1616 writer->WriteObject(ptr()->pattern_); | 1664 writer->WriteObject(ptr()->pattern_); |
| 1617 writer->WriteIntptrValue(ptr()->type_); | 1665 writer->WriteIntptrValue(ptr()->type_); |
| 1618 writer->WriteIntptrValue(ptr()->flags_); | 1666 writer->WriteIntptrValue(ptr()->flags_); |
| 1619 | 1667 |
| 1620 // Do not write out the data part which is native. | 1668 // Do not write out the data part which is native. |
| 1621 } | 1669 } |
| 1622 | 1670 |
| 1623 } // namespace dart | 1671 } // namespace dart |
| OLD | NEW |