| 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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 } | 932 } |
| 933 | 933 |
| 934 | 934 |
| 935 void RawExceptionHandlers::WriteTo(SnapshotWriter* writer, | 935 void RawExceptionHandlers::WriteTo(SnapshotWriter* writer, |
| 936 intptr_t object_id, | 936 intptr_t object_id, |
| 937 Snapshot::Kind kind) { | 937 Snapshot::Kind kind) { |
| 938 UNREACHABLE(); | 938 UNREACHABLE(); |
| 939 } | 939 } |
| 940 | 940 |
| 941 | 941 |
| 942 RawDeoptInfo* DeoptInfo::ReadFrom(SnapshotReader* reader, |
| 943 intptr_t object_id, |
| 944 intptr_t tags, |
| 945 Snapshot::Kind kind) { |
| 946 UNREACHABLE(); |
| 947 return DeoptInfo::null(); |
| 948 } |
| 949 |
| 950 |
| 951 void RawDeoptInfo::WriteTo(SnapshotWriter* writer, |
| 952 intptr_t object_id, |
| 953 Snapshot::Kind kind) { |
| 954 UNREACHABLE(); |
| 955 } |
| 956 |
| 957 |
| 942 RawContext* Context::ReadFrom(SnapshotReader* reader, | 958 RawContext* Context::ReadFrom(SnapshotReader* reader, |
| 943 intptr_t object_id, | 959 intptr_t object_id, |
| 944 intptr_t tags, | 960 intptr_t tags, |
| 945 Snapshot::Kind kind) { | 961 Snapshot::Kind kind) { |
| 946 ASSERT(reader != NULL); | 962 ASSERT(reader != NULL); |
| 947 | 963 |
| 948 // Allocate context object. | 964 // Allocate context object. |
| 949 intptr_t num_vars = reader->ReadIntptrValue(); | 965 intptr_t num_vars = reader->ReadIntptrValue(); |
| 950 Context& context = Context::ZoneHandle(reader->isolate(), Context::null()); | 966 Context& context = Context::ZoneHandle(reader->isolate(), Context::null()); |
| 951 if (kind == Snapshot::kFull) { | 967 if (kind == Snapshot::kFull) { |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1991 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); | 2007 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); |
| 1992 writer->WriteObjectImpl(ptr()->pattern_); | 2008 writer->WriteObjectImpl(ptr()->pattern_); |
| 1993 writer->WriteIntptrValue(ptr()->type_); | 2009 writer->WriteIntptrValue(ptr()->type_); |
| 1994 writer->WriteIntptrValue(ptr()->flags_); | 2010 writer->WriteIntptrValue(ptr()->flags_); |
| 1995 | 2011 |
| 1996 // Do not write out the data part which is native. | 2012 // Do not write out the data part which is native. |
| 1997 } | 2013 } |
| 1998 | 2014 |
| 1999 | 2015 |
| 2000 } // namespace dart | 2016 } // namespace dart |
| OLD | NEW |