| 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/snapshot.h" | 5 #include "vm/snapshot.h" |
| 6 | 6 |
| 7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "vm/bootstrap.h" | 8 #include "vm/bootstrap.h" |
| 9 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 pobj_(PassiveObject::Handle(isolate)), | 181 pobj_(PassiveObject::Handle(isolate)), |
| 182 array_(Array::Handle(isolate)), | 182 array_(Array::Handle(isolate)), |
| 183 field_(Field::Handle(isolate)), | 183 field_(Field::Handle(isolate)), |
| 184 str_(String::Handle(isolate)), | 184 str_(String::Handle(isolate)), |
| 185 library_(Library::Handle(isolate)), | 185 library_(Library::Handle(isolate)), |
| 186 type_(AbstractType::Handle(isolate)), | 186 type_(AbstractType::Handle(isolate)), |
| 187 type_arguments_(TypeArguments::Handle(isolate)), | 187 type_arguments_(TypeArguments::Handle(isolate)), |
| 188 tokens_(Array::Handle(isolate)), | 188 tokens_(Array::Handle(isolate)), |
| 189 stream_(TokenStream::Handle(isolate)), | 189 stream_(TokenStream::Handle(isolate)), |
| 190 data_(ExternalTypedData::Handle(isolate)), | 190 data_(ExternalTypedData::Handle(isolate)), |
| 191 typed_data_(TypedData::Handle(isolate)), |
| 191 error_(UnhandledException::Handle(isolate)), | 192 error_(UnhandledException::Handle(isolate)), |
| 192 max_vm_isolate_object_id_( | 193 max_vm_isolate_object_id_( |
| 193 Object::vm_isolate_snapshot_object_table().Length()), | 194 Object::vm_isolate_snapshot_object_table().Length()), |
| 194 backward_references_(backward_refs) { | 195 backward_references_(backward_refs) { |
| 195 } | 196 } |
| 196 | 197 |
| 197 | 198 |
| 198 RawObject* SnapshotReader::ReadObject() { | 199 RawObject* SnapshotReader::ReadObject() { |
| 199 // Setup for long jump in case there is an exception while reading. | 200 // Setup for long jump in case there is an exception while reading. |
| 200 LongJumpScope jump; | 201 LongJumpScope jump; |
| (...skipping 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2291 NoSafepointScope no_safepoint; | 2292 NoSafepointScope no_safepoint; |
| 2292 WriteObject(obj.raw()); | 2293 WriteObject(obj.raw()); |
| 2293 UnmarkAll(); | 2294 UnmarkAll(); |
| 2294 } else { | 2295 } else { |
| 2295 ThrowException(exception_type(), exception_msg()); | 2296 ThrowException(exception_type(), exception_msg()); |
| 2296 } | 2297 } |
| 2297 } | 2298 } |
| 2298 | 2299 |
| 2299 | 2300 |
| 2300 } // namespace dart | 2301 } // namespace dart |
| OLD | NEW |