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 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2125 ASSERT(!imported.IsNull()); | 2125 ASSERT(!imported.IsNull()); |
2126 CollectLibraryFields(field_list, imported, prefix_name, false); | 2126 CollectLibraryFields(field_list, imported, prefix_name, false); |
2127 } | 2127 } |
2128 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate_); | 2128 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate_); |
2129 LibraryPrefixIterator it(lib); | 2129 LibraryPrefixIterator it(lib); |
2130 while (it.HasNext()) { | 2130 while (it.HasNext()) { |
2131 prefix = it.GetNext(); | 2131 prefix = it.GetNext(); |
2132 prefix_name = prefix.name(); | 2132 prefix_name = prefix.name(); |
2133 ASSERT(!prefix_name.IsNull()); | 2133 ASSERT(!prefix_name.IsNull()); |
2134 prefix_name = String::Concat(prefix_name, Symbols::Dot()); | 2134 prefix_name = String::Concat(prefix_name, Symbols::Dot()); |
2135 for (intptr_t i = 0; i < prefix.num_imports(); i++) { | 2135 for (int32_t i = 0; i < prefix.num_imports(); i++) { |
2136 imported = prefix.GetLibrary(i); | 2136 imported = prefix.GetLibrary(i); |
2137 CollectLibraryFields(field_list, imported, prefix_name, false); | 2137 CollectLibraryFields(field_list, imported, prefix_name, false); |
2138 } | 2138 } |
2139 } | 2139 } |
2140 return Array::MakeArray(field_list); | 2140 return Array::MakeArray(field_list); |
2141 } | 2141 } |
2142 | 2142 |
2143 | 2143 |
2144 // static | 2144 // static |
2145 void Debugger::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 2145 void Debugger::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2578 } | 2578 } |
2579 | 2579 |
2580 | 2580 |
2581 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2581 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
2582 ASSERT(bpt->next() == NULL); | 2582 ASSERT(bpt->next() == NULL); |
2583 bpt->set_next(code_breakpoints_); | 2583 bpt->set_next(code_breakpoints_); |
2584 code_breakpoints_ = bpt; | 2584 code_breakpoints_ = bpt; |
2585 } | 2585 } |
2586 | 2586 |
2587 } // namespace dart | 2587 } // namespace dart |
OLD | NEW |