| 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/object.h" | 5 #include "vm/object.h" |
| 6 #include "vm/object_store.h" | 6 #include "vm/object_store.h" |
| 7 #include "vm/snapshot.h" | 7 #include "vm/snapshot.h" |
| 8 #include "vm/stub_code.h" | 8 #include "vm/stub_code.h" |
| 9 #include "vm/symbols.h" | 9 #include "vm/symbols.h" |
| 10 #include "vm/visitor.h" | 10 #include "vm/visitor.h" |
| (...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 // Write out all the non object fields. | 1173 // Write out all the non object fields. |
| 1174 writer->Write<int64_t>(ptr()->compile_timestamp_); | 1174 writer->Write<int64_t>(ptr()->compile_timestamp_); |
| 1175 writer->Write<int32_t>(ptr()->state_bits_); | 1175 writer->Write<int32_t>(ptr()->state_bits_); |
| 1176 writer->Write<int32_t>(ptr()->entry_patch_pc_offset_); | 1176 writer->Write<int32_t>(ptr()->entry_patch_pc_offset_); |
| 1177 writer->Write<int32_t>(ptr()->patch_code_pc_offset_); | 1177 writer->Write<int32_t>(ptr()->patch_code_pc_offset_); |
| 1178 writer->Write<int32_t>(ptr()->lazy_deopt_pc_offset_); | 1178 writer->Write<int32_t>(ptr()->lazy_deopt_pc_offset_); |
| 1179 | 1179 |
| 1180 // Write out all the object pointer fields. | 1180 // Write out all the object pointer fields. |
| 1181 SnapshotWriterVisitor visitor(writer); | 1181 SnapshotWriterVisitor visitor(writer); |
| 1182 visitor.VisitPointers(from(), to()); | 1182 visitor.VisitPointers(from(), to()); |
| 1183 |
| 1184 writer->SetInstructionsCode(ptr()->instructions_, this); |
| 1183 } | 1185 } |
| 1184 | 1186 |
| 1185 | 1187 |
| 1186 RawInstructions* Instructions::ReadFrom(SnapshotReader* reader, | 1188 RawInstructions* Instructions::ReadFrom(SnapshotReader* reader, |
| 1187 intptr_t object_id, | 1189 intptr_t object_id, |
| 1188 intptr_t tags, | 1190 intptr_t tags, |
| 1189 Snapshot::Kind kind) { | 1191 Snapshot::Kind kind) { |
| 1190 ASSERT(reader->snapshot_code()); | 1192 ASSERT(reader->snapshot_code()); |
| 1191 ASSERT(kind == Snapshot::kFull); | 1193 ASSERT(kind == Snapshot::kFull); |
| 1192 | 1194 |
| (...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3232 // We do not allow objects with native fields in an isolate message. | 3234 // We do not allow objects with native fields in an isolate message. |
| 3233 writer->SetWriteException(Exceptions::kArgument, | 3235 writer->SetWriteException(Exceptions::kArgument, |
| 3234 "Illegal argument in isolate message" | 3236 "Illegal argument in isolate message" |
| 3235 " : (object is a UserTag)"); | 3237 " : (object is a UserTag)"); |
| 3236 } else { | 3238 } else { |
| 3237 UNREACHABLE(); | 3239 UNREACHABLE(); |
| 3238 } | 3240 } |
| 3239 } | 3241 } |
| 3240 | 3242 |
| 3241 } // namespace dart | 3243 } // namespace dart |
| OLD | NEW |