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

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

Issue 23964003: Traverse inlined frames lazily when printing the stacktrace. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « 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/symbols.h" 9 #include "vm/symbols.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
(...skipping 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 if (kind == Snapshot::kFull) { 2482 if (kind == Snapshot::kFull) {
2483 Stacktrace& result = Stacktrace::ZoneHandle(reader->isolate(), 2483 Stacktrace& result = Stacktrace::ZoneHandle(reader->isolate(),
2484 reader->NewStacktrace()); 2484 reader->NewStacktrace());
2485 reader->AddBackRef(object_id, &result, kIsDeserialized); 2485 reader->AddBackRef(object_id, &result, kIsDeserialized);
2486 2486
2487 // There are no non object pointer fields. 2487 // There are no non object pointer fields.
2488 2488
2489 // Read all the object pointer fields. 2489 // Read all the object pointer fields.
2490 Array& array = Array::Handle(reader->isolate()); 2490 Array& array = Array::Handle(reader->isolate());
2491 array ^= reader->ReadObjectRef(); 2491 array ^= reader->ReadObjectRef();
2492 result.set_function_array(array);
2493 array ^= reader->ReadObjectRef();
2494 result.set_code_array(array); 2492 result.set_code_array(array);
2495 array ^= reader->ReadObjectRef(); 2493 array ^= reader->ReadObjectRef();
2496 result.set_pc_offset_array(array); 2494 result.set_pc_offset_array(array);
2497 2495
2498 array ^= reader->ReadObjectRef(); 2496 array ^= reader->ReadObjectRef();
2499 result.set_catch_func_array(array);
2500 array ^= reader->ReadObjectRef();
2501 result.set_catch_code_array(array); 2497 result.set_catch_code_array(array);
2502 array ^= reader->ReadObjectRef(); 2498 array ^= reader->ReadObjectRef();
2503 result.set_catch_pc_offset_array(array); 2499 result.set_catch_pc_offset_array(array);
2504 2500
2505 return result.raw(); 2501 return result.raw();
2506 } 2502 }
2507 UNREACHABLE(); // Stacktraces are not sent in a snapshot. 2503 UNREACHABLE(); // Stacktraces are not sent in a snapshot.
2508 return Stacktrace::null(); 2504 return Stacktrace::null();
2509 } 2505 }
2510 2506
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2644 } 2640 }
2645 2641
2646 2642
2647 void RawMirrorReference::WriteTo(SnapshotWriter* writer, 2643 void RawMirrorReference::WriteTo(SnapshotWriter* writer,
2648 intptr_t object_id, 2644 intptr_t object_id,
2649 Snapshot::Kind kind) { 2645 Snapshot::Kind kind) {
2650 UNREACHABLE(); 2646 UNREACHABLE();
2651 } 2647 }
2652 2648
2653 } // namespace dart 2649 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698