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

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

Issue 9113099: Bingo (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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 | « no previous file | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "vm/code_index_table.h" 7 #include "vm/code_index_table.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 return result.raw(); 466 return result.raw();
467 } 467 }
468 468
469 469
470 RawArray* Debugger::GetInstanceFields(const Instance& obj) { 470 RawArray* Debugger::GetInstanceFields(const Instance& obj) {
471 Class& cls = Class::Handle(obj.clazz()); 471 Class& cls = Class::Handle(obj.clazz());
472 Array& fields = Array::Handle(); 472 Array& fields = Array::Handle();
473 Field& field = Field::Handle(); 473 Field& field = Field::Handle();
474 GrowableArray<Object*> field_list(8); 474 GrowableArray<Object*> field_list(8);
475 // Iterate over fields in class hierarchy to count all instance fields. 475 // Iterate over fields in class hierarchy to count all instance fields.
476 int num_fields = 0;
477 while (!cls.IsNull()) { 476 while (!cls.IsNull()) {
478 fields = cls.fields(); 477 fields = cls.fields();
479 for (int i = 0; i < fields.Length(); i++) { 478 for (int i = 0; i < fields.Length(); i++) {
480 field ^= fields.At(i); 479 field ^= fields.At(i);
481 if (!field.is_static()) { 480 if (!field.is_static()) {
482 String& field_name = String::Handle(field.name()); 481 String& field_name = String::Handle(field.name());
483 field_list.Add(&field_name); 482 field_list.Add(&field_name);
484 Object& field_value = Object::Handle(); 483 Object& field_value = Object::Handle();
485 field_value = GetInstanceField(cls, field_name, obj); 484 field_value = GetInstanceField(cls, field_name, obj);
486 field_list.Add(&field_value); 485 field_list.Add(&field_value);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 632
634 633
635 void Debugger::RegisterBreakpoint(Breakpoint* bpt) { 634 void Debugger::RegisterBreakpoint(Breakpoint* bpt) {
636 ASSERT(bpt->next() == NULL); 635 ASSERT(bpt->next() == NULL);
637 bpt->set_next(this->breakpoints_); 636 bpt->set_next(this->breakpoints_);
638 this->breakpoints_ = bpt; 637 this->breakpoints_ = bpt;
639 } 638 }
640 639
641 640
642 } // namespace dart 641 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698