| 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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1189   // Write out all the non object fields. |  1189   // Write out all the non object fields. | 
|  1190   writer->Write<int64_t>(ptr()->compile_timestamp_); |  1190   writer->Write<int64_t>(ptr()->compile_timestamp_); | 
|  1191   writer->Write<int32_t>(ptr()->state_bits_); |  1191   writer->Write<int32_t>(ptr()->state_bits_); | 
|  1192   writer->Write<int32_t>(ptr()->entry_patch_pc_offset_); |  1192   writer->Write<int32_t>(ptr()->entry_patch_pc_offset_); | 
|  1193   writer->Write<int32_t>(ptr()->patch_code_pc_offset_); |  1193   writer->Write<int32_t>(ptr()->patch_code_pc_offset_); | 
|  1194   writer->Write<int32_t>(ptr()->lazy_deopt_pc_offset_); |  1194   writer->Write<int32_t>(ptr()->lazy_deopt_pc_offset_); | 
|  1195  |  1195  | 
|  1196   // Write out all the object pointer fields. |  1196   // Write out all the object pointer fields. | 
|  1197   SnapshotWriterVisitor visitor(writer); |  1197   SnapshotWriterVisitor visitor(writer); | 
|  1198   visitor.VisitPointers(from(), to()); |  1198   visitor.VisitPointers(from(), to()); | 
 |  1199  | 
 |  1200   writer->SetInstructionsCode(ptr()->instructions_, this); | 
|  1199 } |  1201 } | 
|  1200  |  1202  | 
|  1201  |  1203  | 
|  1202 RawInstructions* Instructions::ReadFrom(SnapshotReader* reader, |  1204 RawInstructions* Instructions::ReadFrom(SnapshotReader* reader, | 
|  1203                                         intptr_t object_id, |  1205                                         intptr_t object_id, | 
|  1204                                         intptr_t tags, |  1206                                         intptr_t tags, | 
|  1205                                         Snapshot::Kind kind) { |  1207                                         Snapshot::Kind kind) { | 
|  1206   ASSERT(reader->snapshot_code()); |  1208   ASSERT(reader->snapshot_code()); | 
|  1207   ASSERT(kind == Snapshot::kFull); |  1209   ASSERT(kind == Snapshot::kFull); | 
|  1208  |  1210  | 
| (...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3248     // We do not allow objects with native fields in an isolate message. |  3250     // We do not allow objects with native fields in an isolate message. | 
|  3249     writer->SetWriteException(Exceptions::kArgument, |  3251     writer->SetWriteException(Exceptions::kArgument, | 
|  3250                               "Illegal argument in isolate message" |  3252                               "Illegal argument in isolate message" | 
|  3251                               " : (object is a UserTag)"); |  3253                               " : (object is a UserTag)"); | 
|  3252   } else { |  3254   } else { | 
|  3253     UNREACHABLE(); |  3255     UNREACHABLE(); | 
|  3254   } |  3256   } | 
|  3255 } |  3257 } | 
|  3256  |  3258  | 
|  3257 }  // namespace dart |  3259 }  // namespace dart | 
| OLD | NEW |