| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 // Write out all the object pointer fields. | 138 // Write out all the object pointer fields. |
| 139 visitor.VisitPointers(from(), to()); | 139 visitor.VisitPointers(from(), to()); |
| 140 } | 140 } |
| 141 | 141 |
| 142 | 142 |
| 143 RawType* Type::ReadFrom(SnapshotReader* reader, | 143 RawType* Type::ReadFrom(SnapshotReader* reader, |
| 144 intptr_t object_id, | 144 intptr_t object_id, |
| 145 bool classes_serialized) { | 145 bool classes_serialized) { |
| 146 UNREACHABLE(); // Type is an abstract class. | 146 UNREACHABLE(); // Type is an abstract class. |
| 147 return Type::null(); | 147 return NULL; |
| 148 } | 148 } |
| 149 | 149 |
| 150 | 150 |
| 151 void RawType::WriteTo(SnapshotWriter* writer, | 151 void RawType::WriteTo(SnapshotWriter* writer, |
| 152 intptr_t object_id, | 152 intptr_t object_id, |
| 153 bool serialize_classes) { | 153 bool serialize_classes) { |
| 154 UNREACHABLE(); // Type is an abstract class. | 154 UNREACHABLE(); // Type is an abstract class. |
| 155 } | 155 } |
| 156 | 156 |
| 157 | 157 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 // Write out all the object pointer fields. | 282 // Write out all the object pointer fields. |
| 283 visitor.VisitPointers(from(), to()); | 283 visitor.VisitPointers(from(), to()); |
| 284 } | 284 } |
| 285 | 285 |
| 286 | 286 |
| 287 RawTypeArguments* TypeArguments::ReadFrom(SnapshotReader* reader, | 287 RawTypeArguments* TypeArguments::ReadFrom(SnapshotReader* reader, |
| 288 intptr_t object_id, | 288 intptr_t object_id, |
| 289 bool classes_serialized) { | 289 bool classes_serialized) { |
| 290 UNREACHABLE(); // TypeArguments is an abstract class. | 290 UNREACHABLE(); // TypeArguments is an abstract class. |
| 291 return TypeArguments::null(); | 291 return TypeArray::null(); |
| 292 } | 292 } |
| 293 | 293 |
| 294 | 294 |
| 295 void RawTypeArguments::WriteTo(SnapshotWriter* writer, | 295 void RawTypeArguments::WriteTo(SnapshotWriter* writer, |
| 296 intptr_t object_id, | 296 intptr_t object_id, |
| 297 bool serialize_classes) { | 297 bool serialize_classes) { |
| 298 UNREACHABLE(); // TypeArguments is an abstract class. | 298 UNREACHABLE(); // TypeArguments is an abstract class. |
| 299 } | 299 } |
| 300 | 300 |
| 301 | 301 |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1385 // Write out all the other fields. | 1385 // Write out all the other fields. |
| 1386 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); | 1386 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); |
| 1387 writer->WriteObject(ptr()->pattern_); | 1387 writer->WriteObject(ptr()->pattern_); |
| 1388 writer->Write<intptr_t>(ptr()->type_); | 1388 writer->Write<intptr_t>(ptr()->type_); |
| 1389 writer->Write<intptr_t>(ptr()->flags_); | 1389 writer->Write<intptr_t>(ptr()->flags_); |
| 1390 | 1390 |
| 1391 // Do not write out the data part which is native. | 1391 // Do not write out the data part which is native. |
| 1392 } | 1392 } |
| 1393 | 1393 |
| 1394 } // namespace dart | 1394 } // namespace dart |
| OLD | NEW |