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/debugger.h" | 5 #include "vm/debugger.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 | 8 |
9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 Class& cls = Class::Handle(isolate_); | 1223 Class& cls = Class::Handle(isolate_); |
1224 String& field_name = String::Handle(isolate_); | 1224 String& field_name = String::Handle(isolate_); |
1225 Object& field_value = Object::Handle(isolate_); | 1225 Object& field_value = Object::Handle(isolate_); |
1226 while (it.HasNext()) { | 1226 while (it.HasNext()) { |
1227 entry = it.GetNext(); | 1227 entry = it.GetNext(); |
1228 if (entry.IsField()) { | 1228 if (entry.IsField()) { |
1229 field ^= entry.raw(); | 1229 field ^= entry.raw(); |
1230 cls = field.owner(); | 1230 cls = field.owner(); |
1231 ASSERT(field.is_static()); | 1231 ASSERT(field.is_static()); |
1232 field_name = field.name(); | 1232 field_name = field.name(); |
1233 if ((field_name.CharAt(0) == '_') && !include_private_fields) { | 1233 if ((field_name.CodeUnitAt(0) == '_') && !include_private_fields) { |
1234 // Skip library-private field. | 1234 // Skip library-private field. |
1235 continue; | 1235 continue; |
1236 } | 1236 } |
1237 field_value = GetStaticField(cls, field_name); | 1237 field_value = GetStaticField(cls, field_name); |
1238 if (!prefix.IsNull()) { | 1238 if (!prefix.IsNull()) { |
1239 field_name = String::Concat(prefix, field_name); | 1239 field_name = String::Concat(prefix, field_name); |
1240 } | 1240 } |
1241 field_list.Add(field_name); | 1241 field_list.Add(field_name); |
1242 field_list.Add(field_value); | 1242 field_list.Add(field_value); |
1243 } | 1243 } |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 } | 1616 } |
1617 | 1617 |
1618 | 1618 |
1619 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 1619 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
1620 ASSERT(bpt->next() == NULL); | 1620 ASSERT(bpt->next() == NULL); |
1621 bpt->set_next(code_breakpoints_); | 1621 bpt->set_next(code_breakpoints_); |
1622 code_breakpoints_ = bpt; | 1622 code_breakpoints_ = bpt; |
1623 } | 1623 } |
1624 | 1624 |
1625 } // namespace dart | 1625 } // namespace dart |
OLD | NEW |