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

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

Issue 419103003: Handle load errors in deferred code (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/dart_api_impl.cc ('k') | runtime/vm/debugger_api_impl.cc » ('j') | 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/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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/debugger_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698