| 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/visitor.h" | 9 #include "vm/visitor.h" |
| 10 | 10 |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 intptr_t tags, | 859 intptr_t tags, |
| 860 Snapshot::Kind kind) { | 860 Snapshot::Kind kind) { |
| 861 UNREACHABLE(); | 861 UNREACHABLE(); |
| 862 return Code::null(); | 862 return Code::null(); |
| 863 } | 863 } |
| 864 | 864 |
| 865 | 865 |
| 866 void RawCode::WriteTo(SnapshotWriter* writer, | 866 void RawCode::WriteTo(SnapshotWriter* writer, |
| 867 intptr_t object_id, | 867 intptr_t object_id, |
| 868 Snapshot::Kind kind) { | 868 Snapshot::Kind kind) { |
| 869 // Currently we do not serialize any code and hence we write | 869 // We have already checked for this and written a NULL object, hence we |
| 870 // out a null object for it. | 870 // should not reach here. |
| 871 ASSERT(writer != NULL); | 871 UNREACHABLE(); |
| 872 ASSERT(kind != Snapshot::kMessage); | |
| 873 | |
| 874 writer->WriteIndexedObject(Object::kNullObject); | |
| 875 } | 872 } |
| 876 | 873 |
| 877 | 874 |
| 878 RawInstructions* Instructions::ReadFrom(SnapshotReader* reader, | 875 RawInstructions* Instructions::ReadFrom(SnapshotReader* reader, |
| 879 intptr_t object_id, | 876 intptr_t object_id, |
| 880 intptr_t tags, | 877 intptr_t tags, |
| 881 Snapshot::Kind kind) { | 878 Snapshot::Kind kind) { |
| 882 UNREACHABLE(); | 879 UNREACHABLE(); |
| 883 return Instructions::null(); | 880 return Instructions::null(); |
| 884 } | 881 } |
| (...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1902 writer->WriteIntptrValue(ptr()->flags_); | 1899 writer->WriteIntptrValue(ptr()->flags_); |
| 1903 | 1900 |
| 1904 // Do not write out the data part which is native. | 1901 // Do not write out the data part which is native. |
| 1905 } | 1902 } |
| 1906 | 1903 |
| 1907 | 1904 |
| 1908 RawICData* ICData::ReadFrom(SnapshotReader* reader, | 1905 RawICData* ICData::ReadFrom(SnapshotReader* reader, |
| 1909 intptr_t object_id, | 1906 intptr_t object_id, |
| 1910 intptr_t tags, | 1907 intptr_t tags, |
| 1911 Snapshot::Kind kind) { | 1908 Snapshot::Kind kind) { |
| 1912 UNIMPLEMENTED(); | 1909 UNREACHABLE(); |
| 1913 return NULL; | 1910 return NULL; |
| 1914 } | 1911 } |
| 1915 | 1912 |
| 1916 | 1913 |
| 1917 void RawICData::WriteTo(SnapshotWriter* writer, | 1914 void RawICData::WriteTo(SnapshotWriter* writer, |
| 1918 intptr_t object_id, | 1915 intptr_t object_id, |
| 1919 Snapshot::Kind kind) { | 1916 Snapshot::Kind kind) { |
| 1920 UNIMPLEMENTED(); | 1917 UNREACHABLE(); |
| 1921 } | 1918 } |
| 1922 | 1919 |
| 1923 | 1920 |
| 1924 } // namespace dart | 1921 } // namespace dart |
| OLD | NEW |