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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 imported = lib.ImportLibraryAt(i); | 1278 imported = lib.ImportLibraryAt(i); |
1279 ASSERT(!imported.IsNull()); | 1279 ASSERT(!imported.IsNull()); |
1280 CollectLibraryFields(field_list, imported, prefix_name, false); | 1280 CollectLibraryFields(field_list, imported, prefix_name, false); |
1281 } | 1281 } |
1282 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate_); | 1282 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate_); |
1283 LibraryPrefixIterator it(lib); | 1283 LibraryPrefixIterator it(lib); |
1284 while (it.HasNext()) { | 1284 while (it.HasNext()) { |
1285 prefix = it.GetNext(); | 1285 prefix = it.GetNext(); |
1286 prefix_name = prefix.name(); | 1286 prefix_name = prefix.name(); |
1287 ASSERT(!prefix_name.IsNull()); | 1287 ASSERT(!prefix_name.IsNull()); |
1288 prefix_name = String::Concat(prefix_name, | 1288 prefix_name = String::Concat(prefix_name, Symbols::Dot()); |
1289 String::Handle(isolate_, Symbols::Dot())); | |
1290 for (int i = 0; i < prefix.num_imports(); i++) { | 1289 for (int i = 0; i < prefix.num_imports(); i++) { |
1291 imported = prefix.GetLibrary(i); | 1290 imported = prefix.GetLibrary(i); |
1292 CollectLibraryFields(field_list, imported, prefix_name, false); | 1291 CollectLibraryFields(field_list, imported, prefix_name, false); |
1293 } | 1292 } |
1294 } | 1293 } |
1295 return Array::MakeArray(field_list); | 1294 return Array::MakeArray(field_list); |
1296 } | 1295 } |
1297 | 1296 |
1298 | 1297 |
1299 void Debugger::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 1298 void Debugger::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 } | 1636 } |
1638 | 1637 |
1639 | 1638 |
1640 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 1639 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
1641 ASSERT(bpt->next() == NULL); | 1640 ASSERT(bpt->next() == NULL); |
1642 bpt->set_next(code_breakpoints_); | 1641 bpt->set_next(code_breakpoints_); |
1643 code_breakpoints_ = bpt; | 1642 code_breakpoints_ = bpt; |
1644 } | 1643 } |
1645 | 1644 |
1646 } // namespace dart | 1645 } // namespace dart |
OLD | NEW |