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

Side by Side Diff: vm/debugger.cc

Issue 11667012: Convert all symbols accessor to return read only handles so that it is not necessary to create a ne… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 12 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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « vm/dart_entry.cc ('k') | vm/debugger_api_impl.cc » ('j') | vm/intermediate_language_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698