| 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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 | 1034 |
| 1035 // Serialize number of variables. | 1035 // Serialize number of variables. |
| 1036 writer->WriteIntptrValue(ptr()->num_variables_); | 1036 writer->WriteIntptrValue(ptr()->num_variables_); |
| 1037 | 1037 |
| 1038 // Write out all the object pointer fields. | 1038 // Write out all the object pointer fields. |
| 1039 SnapshotWriterVisitor visitor(writer); | 1039 SnapshotWriterVisitor visitor(writer); |
| 1040 visitor.VisitPointers(from(), to(ptr()->num_variables_)); | 1040 visitor.VisitPointers(from(), to(ptr()->num_variables_)); |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 | 1043 |
| 1044 RawICData* ICData::ReadFrom(SnapshotReader* reader, |
| 1045 intptr_t object_id, |
| 1046 intptr_t tags, |
| 1047 Snapshot::Kind kind) { |
| 1048 UNREACHABLE(); |
| 1049 return NULL; |
| 1050 } |
| 1051 |
| 1052 |
| 1053 void RawICData::WriteTo(SnapshotWriter* writer, |
| 1054 intptr_t object_id, |
| 1055 Snapshot::Kind kind) { |
| 1056 UNREACHABLE(); |
| 1057 } |
| 1058 |
| 1059 |
| 1044 RawError* Error::ReadFrom(SnapshotReader* reader, | 1060 RawError* Error::ReadFrom(SnapshotReader* reader, |
| 1045 intptr_t object_id, | 1061 intptr_t object_id, |
| 1046 intptr_t tags, | 1062 intptr_t tags, |
| 1047 Snapshot::Kind kind) { | 1063 Snapshot::Kind kind) { |
| 1048 UNREACHABLE(); | 1064 UNREACHABLE(); |
| 1049 return Error::null(); | 1065 return Error::null(); |
| 1050 } | 1066 } |
| 1051 | 1067 |
| 1052 | 1068 |
| 1053 void RawError::WriteTo(SnapshotWriter* writer, | 1069 void RawError::WriteTo(SnapshotWriter* writer, |
| 1054 intptr_t object_id, | 1070 intptr_t object_id, |
| 1055 Snapshot::Kind kind) { | 1071 Snapshot::Kind kind) { |
| 1056 UNREACHABLE(); | 1072 UNREACHABLE(); |
| 1057 } | 1073 } |
| 1058 | 1074 |
| 1059 | 1075 |
| 1060 RawApiError* ApiError::ReadFrom(SnapshotReader* reader, | 1076 RawApiError* ApiError::ReadFrom(SnapshotReader* reader, |
| 1061 intptr_t object_id, | 1077 intptr_t object_id, |
| 1062 intptr_t tags, | 1078 intptr_t tags, |
| 1063 Snapshot::Kind kind) { | 1079 Snapshot::Kind kind) { |
| 1064 UNIMPLEMENTED(); | 1080 UNIMPLEMENTED(); |
| 1065 return ApiError::null(); | 1081 return ApiError::null(); |
| (...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 // Write out all the other fields. | 1950 // Write out all the other fields. |
| 1935 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); | 1951 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); |
| 1936 writer->WriteObject(ptr()->pattern_); | 1952 writer->WriteObject(ptr()->pattern_); |
| 1937 writer->WriteIntptrValue(ptr()->type_); | 1953 writer->WriteIntptrValue(ptr()->type_); |
| 1938 writer->WriteIntptrValue(ptr()->flags_); | 1954 writer->WriteIntptrValue(ptr()->flags_); |
| 1939 | 1955 |
| 1940 // Do not write out the data part which is native. | 1956 // Do not write out the data part which is native. |
| 1941 } | 1957 } |
| 1942 | 1958 |
| 1943 | 1959 |
| 1944 RawICData* ICData::ReadFrom(SnapshotReader* reader, | |
| 1945 intptr_t object_id, | |
| 1946 intptr_t tags, | |
| 1947 Snapshot::Kind kind) { | |
| 1948 UNREACHABLE(); | |
| 1949 return NULL; | |
| 1950 } | |
| 1951 | |
| 1952 | |
| 1953 void RawICData::WriteTo(SnapshotWriter* writer, | |
| 1954 intptr_t object_id, | |
| 1955 Snapshot::Kind kind) { | |
| 1956 UNREACHABLE(); | |
| 1957 } | |
| 1958 | |
| 1959 | |
| 1960 } // namespace dart | 1960 } // namespace dart |
| OLD | NEW |