| 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/symbols.h" | 9 #include "vm/symbols.h" |
| 10 #include "vm/visitor.h" | 10 #include "vm/visitor.h" |
| (...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 intptr_t object_id, | 1139 intptr_t object_id, |
| 1140 Snapshot::Kind kind) { | 1140 Snapshot::Kind kind) { |
| 1141 UNREACHABLE(); | 1141 UNREACHABLE(); |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 | 1144 |
| 1145 RawApiError* ApiError::ReadFrom(SnapshotReader* reader, | 1145 RawApiError* ApiError::ReadFrom(SnapshotReader* reader, |
| 1146 intptr_t object_id, | 1146 intptr_t object_id, |
| 1147 intptr_t tags, | 1147 intptr_t tags, |
| 1148 Snapshot::Kind kind) { | 1148 Snapshot::Kind kind) { |
| 1149 UNIMPLEMENTED(); | 1149 UNREACHABLE(); |
| 1150 return ApiError::null(); | 1150 return ApiError::null(); |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 | 1153 |
| 1154 void RawApiError::WriteTo(SnapshotWriter* writer, | 1154 void RawApiError::WriteTo(SnapshotWriter* writer, |
| 1155 intptr_t object_id, | 1155 intptr_t object_id, |
| 1156 Snapshot::Kind kind) { | 1156 Snapshot::Kind kind) { |
| 1157 UNIMPLEMENTED(); | 1157 UNREACHABLE(); |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 | 1160 |
| 1161 RawLanguageError* LanguageError::ReadFrom(SnapshotReader* reader, | 1161 RawLanguageError* LanguageError::ReadFrom(SnapshotReader* reader, |
| 1162 intptr_t object_id, | 1162 intptr_t object_id, |
| 1163 intptr_t tags, | 1163 intptr_t tags, |
| 1164 Snapshot::Kind kind) { | 1164 Snapshot::Kind kind) { |
| 1165 UNIMPLEMENTED(); | 1165 UNREACHABLE(); |
| 1166 return LanguageError::null(); | 1166 return LanguageError::null(); |
| 1167 } | 1167 } |
| 1168 | 1168 |
| 1169 | 1169 |
| 1170 void RawLanguageError::WriteTo(SnapshotWriter* writer, | 1170 void RawLanguageError::WriteTo(SnapshotWriter* writer, |
| 1171 intptr_t object_id, | 1171 intptr_t object_id, |
| 1172 Snapshot::Kind kind) { | 1172 Snapshot::Kind kind) { |
| 1173 UNIMPLEMENTED(); | 1173 UNREACHABLE(); |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 | 1176 |
| 1177 RawUnhandledException* UnhandledException::ReadFrom(SnapshotReader* reader, | 1177 RawUnhandledException* UnhandledException::ReadFrom(SnapshotReader* reader, |
| 1178 intptr_t object_id, | 1178 intptr_t object_id, |
| 1179 intptr_t tags, | 1179 intptr_t tags, |
| 1180 Snapshot::Kind kind) { | 1180 Snapshot::Kind kind) { |
| 1181 UNIMPLEMENTED(); | 1181 UNREACHABLE(); |
| 1182 return UnhandledException::null(); | 1182 return UnhandledException::null(); |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 | 1185 |
| 1186 void RawUnhandledException::WriteTo(SnapshotWriter* writer, | 1186 void RawUnhandledException::WriteTo(SnapshotWriter* writer, |
| 1187 intptr_t object_id, | 1187 intptr_t object_id, |
| 1188 Snapshot::Kind kind) { | 1188 Snapshot::Kind kind) { |
| 1189 UNIMPLEMENTED(); | 1189 UNREACHABLE(); |
| 1190 } | 1190 } |
| 1191 | 1191 |
| 1192 | 1192 |
| 1193 RawUnwindError* UnwindError::ReadFrom(SnapshotReader* reader, | 1193 RawUnwindError* UnwindError::ReadFrom(SnapshotReader* reader, |
| 1194 intptr_t object_id, | 1194 intptr_t object_id, |
| 1195 intptr_t tags, | 1195 intptr_t tags, |
| 1196 Snapshot::Kind kind) { | 1196 Snapshot::Kind kind) { |
| 1197 UNIMPLEMENTED(); | 1197 UNREACHABLE(); |
| 1198 return UnwindError::null(); | 1198 return UnwindError::null(); |
| 1199 } | 1199 } |
| 1200 | 1200 |
| 1201 | 1201 |
| 1202 void RawUnwindError::WriteTo(SnapshotWriter* writer, | 1202 void RawUnwindError::WriteTo(SnapshotWriter* writer, |
| 1203 intptr_t object_id, | 1203 intptr_t object_id, |
| 1204 Snapshot::Kind kind) { | 1204 Snapshot::Kind kind) { |
| 1205 UNIMPLEMENTED(); | 1205 UNREACHABLE(); |
| 1206 } | 1206 } |
| 1207 | 1207 |
| 1208 | 1208 |
| 1209 RawInstance* Instance::ReadFrom(SnapshotReader* reader, | 1209 RawInstance* Instance::ReadFrom(SnapshotReader* reader, |
| 1210 intptr_t object_id, | 1210 intptr_t object_id, |
| 1211 intptr_t tags, | 1211 intptr_t tags, |
| 1212 Snapshot::Kind kind) { | 1212 Snapshot::Kind kind) { |
| 1213 UNREACHABLE(); | 1213 UNREACHABLE(); |
| 1214 return Instance::null(); | 1214 return Instance::null(); |
| 1215 } | 1215 } |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2083 // Write out the class and tags information. | 2083 // Write out the class and tags information. |
| 2084 writer->WriteIndexedObject(kWeakPropertyCid); | 2084 writer->WriteIndexedObject(kWeakPropertyCid); |
| 2085 writer->WriteIntptrValue(writer->GetObjectTags(this)); | 2085 writer->WriteIntptrValue(writer->GetObjectTags(this)); |
| 2086 | 2086 |
| 2087 // Write out all the other fields. | 2087 // Write out all the other fields. |
| 2088 writer->Write<RawObject*>(ptr()->key_); | 2088 writer->Write<RawObject*>(ptr()->key_); |
| 2089 writer->Write<RawObject*>(ptr()->value_); | 2089 writer->Write<RawObject*>(ptr()->value_); |
| 2090 } | 2090 } |
| 2091 | 2091 |
| 2092 } // namespace dart | 2092 } // namespace dart |
| OLD | NEW |