Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: runtime/vm/raw_object_snapshot.cc

Issue 10442088: Bigger stepping granularity in debugging (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« runtime/vm/debugger.cc ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 705
706 // Set the object tags. 706 // Set the object tags.
707 library.set_tags(tags); 707 library.set_tags(tags);
708 708
709 // Set all non object fields. 709 // Set all non object fields.
710 library.raw_ptr()->index_ = reader->ReadIntptrValue(); 710 library.raw_ptr()->index_ = reader->ReadIntptrValue();
711 library.raw_ptr()->num_imports_ = reader->ReadIntptrValue(); 711 library.raw_ptr()->num_imports_ = reader->ReadIntptrValue();
712 library.raw_ptr()->num_imported_into_ = reader->ReadIntptrValue(); 712 library.raw_ptr()->num_imported_into_ = reader->ReadIntptrValue();
713 library.raw_ptr()->num_anonymous_ = reader->ReadIntptrValue(); 713 library.raw_ptr()->num_anonymous_ = reader->ReadIntptrValue();
714 library.raw_ptr()->corelib_imported_ = reader->Read<bool>(); 714 library.raw_ptr()->corelib_imported_ = reader->Read<bool>();
715 library.raw_ptr()->debuggable_ = reader->Read<bool>();
715 library.raw_ptr()->load_state_ = reader->Read<int8_t>(); 716 library.raw_ptr()->load_state_ = reader->Read<int8_t>();
716 // The native resolver is not serialized. 717 // The native resolver is not serialized.
717 Dart_NativeEntryResolver resolver = 718 Dart_NativeEntryResolver resolver =
718 reader->Read<Dart_NativeEntryResolver>(); 719 reader->Read<Dart_NativeEntryResolver>();
719 ASSERT(resolver == NULL); 720 ASSERT(resolver == NULL);
720 library.set_native_entry_resolver(resolver); 721 library.set_native_entry_resolver(resolver);
721 // The cache of loaded scripts is not serialized. 722 // The cache of loaded scripts is not serialized.
722 library.raw_ptr()->loaded_scripts_ = Array::null(); 723 library.raw_ptr()->loaded_scripts_ = Array::null();
723 724
724 // Set all the object fields. 725 // Set all the object fields.
(...skipping 27 matching lines...) Expand all
752 ASSERT(kind != Snapshot::kFull); 753 ASSERT(kind != Snapshot::kFull);
753 // Write out library URL so that it can be looked up when reading. 754 // Write out library URL so that it can be looked up when reading.
754 writer->WriteObject(ptr()->url_); 755 writer->WriteObject(ptr()->url_);
755 } else { 756 } else {
756 // Write out all non object fields. 757 // Write out all non object fields.
757 writer->WriteIntptrValue(ptr()->index_); 758 writer->WriteIntptrValue(ptr()->index_);
758 writer->WriteIntptrValue(ptr()->num_imports_); 759 writer->WriteIntptrValue(ptr()->num_imports_);
759 writer->WriteIntptrValue(ptr()->num_imported_into_); 760 writer->WriteIntptrValue(ptr()->num_imported_into_);
760 writer->WriteIntptrValue(ptr()->num_anonymous_); 761 writer->WriteIntptrValue(ptr()->num_anonymous_);
761 writer->Write<bool>(ptr()->corelib_imported_); 762 writer->Write<bool>(ptr()->corelib_imported_);
763 writer->Write<bool>(ptr()->debuggable_);
762 writer->Write<int8_t>(ptr()->load_state_); 764 writer->Write<int8_t>(ptr()->load_state_);
763 // We do not serialize the native resolver over, this needs to be explicitly 765 // We do not serialize the native resolver over, this needs to be explicitly
764 // set after deserialization. 766 // set after deserialization.
765 writer->Write<Dart_NativeEntryResolver>(NULL); 767 writer->Write<Dart_NativeEntryResolver>(NULL);
766 // We do not write the loaded_scripts_ cache to the snapshot. It gets 768 // We do not write the loaded_scripts_ cache to the snapshot. It gets
767 // set to NULL when reading the library from the snapshot, and will 769 // set to NULL when reading the library from the snapshot, and will
768 // be rebuilt lazily. 770 // be rebuilt lazily.
769 771
770 // Write out all the object pointer fields. 772 // Write out all the object pointer fields.
771 SnapshotWriterVisitor visitor(writer); 773 SnapshotWriterVisitor visitor(writer);
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after
2403 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); 2405 writer->Write<RawObject*>(ptr()->num_bracket_expressions_);
2404 writer->WriteObject(ptr()->pattern_); 2406 writer->WriteObject(ptr()->pattern_);
2405 writer->WriteIntptrValue(ptr()->type_); 2407 writer->WriteIntptrValue(ptr()->type_);
2406 writer->WriteIntptrValue(ptr()->flags_); 2408 writer->WriteIntptrValue(ptr()->flags_);
2407 2409
2408 // Do not write out the data part which is native. 2410 // Do not write out the data part which is native.
2409 } 2411 }
2410 2412
2411 2413
2412 } // namespace dart 2414 } // namespace dart
OLDNEW
« runtime/vm/debugger.cc ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698