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

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
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 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after
2126 ASSERT(!imported.IsNull()); 2126 ASSERT(!imported.IsNull());
2127 CollectLibraryFields(field_list, imported, prefix_name, false); 2127 CollectLibraryFields(field_list, imported, prefix_name, false);
2128 } 2128 }
2129 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate_); 2129 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate_);
2130 LibraryPrefixIterator it(lib); 2130 LibraryPrefixIterator it(lib);
2131 while (it.HasNext()) { 2131 while (it.HasNext()) {
2132 prefix = it.GetNext(); 2132 prefix = it.GetNext();
2133 prefix_name = prefix.name(); 2133 prefix_name = prefix.name();
2134 ASSERT(!prefix_name.IsNull()); 2134 ASSERT(!prefix_name.IsNull());
2135 prefix_name = String::Concat(prefix_name, Symbols::Dot()); 2135 prefix_name = String::Concat(prefix_name, Symbols::Dot());
2136 for (intptr_t i = 0; i < prefix.num_imports(); i++) { 2136 for (int32_t i = 0; i < prefix.num_imports(); i++) {
2137 imported = prefix.GetLibrary(i); 2137 imported = prefix.GetLibrary(i);
2138 CollectLibraryFields(field_list, imported, prefix_name, false); 2138 CollectLibraryFields(field_list, imported, prefix_name, false);
2139 } 2139 }
2140 } 2140 }
2141 return Array::MakeArray(field_list); 2141 return Array::MakeArray(field_list);
2142 } 2142 }
2143 2143
2144 2144
2145 // static 2145 // static
2146 void Debugger::VisitObjectPointers(ObjectPointerVisitor* visitor) { 2146 void Debugger::VisitObjectPointers(ObjectPointerVisitor* visitor) {
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 } 2568 }
2569 2569
2570 2570
2571 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2571 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2572 ASSERT(bpt->next() == NULL); 2572 ASSERT(bpt->next() == NULL);
2573 bpt->set_next(code_breakpoints_); 2573 bpt->set_next(code_breakpoints_);
2574 code_breakpoints_ = bpt; 2574 code_breakpoints_ = bpt;
2575 } 2575 }
2576 2576
2577 } // namespace dart 2577 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698