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

Side by Side Diff: vm/debugger.cc

Issue 10783035: Create frequently used symbols in the vm isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | « vm/dart_entry_test.cc ('k') | 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 "vm/code_generator.h" 7 #include "vm/code_generator.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
11 #include "vm/flags.h" 11 #include "vm/flags.h"
12 #include "vm/globals.h" 12 #include "vm/globals.h"
13 #include "vm/longjump.h" 13 #include "vm/longjump.h"
14 #include "vm/object.h" 14 #include "vm/object.h"
15 #include "vm/object_store.h" 15 #include "vm/object_store.h"
16 #include "vm/os.h" 16 #include "vm/os.h"
17 #include "vm/stack_frame.h" 17 #include "vm/stack_frame.h"
18 #include "vm/stub_code.h" 18 #include "vm/stub_code.h"
19 #include "vm/symbols.h"
19 #include "vm/visitor.h" 20 #include "vm/visitor.h"
20 21
21 22
22 namespace dart { 23 namespace dart {
23 24
24 static const bool verbose = false; 25 static const bool verbose = false;
25 26
26 class RemoteObjectCache : public ZoneAllocated { 27 class RemoteObjectCache : public ZoneAllocated {
27 public: 28 public:
28 explicit RemoteObjectCache(intptr_t initial_size); 29 explicit RemoteObjectCache(intptr_t initial_size);
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 ASSERT(!imported.IsNull()); 1194 ASSERT(!imported.IsNull());
1194 CollectLibraryFields(field_list, imported, prefix_name, false); 1195 CollectLibraryFields(field_list, imported, prefix_name, false);
1195 } 1196 }
1196 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate_); 1197 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate_);
1197 LibraryPrefixIterator it(lib); 1198 LibraryPrefixIterator it(lib);
1198 while (it.HasNext()) { 1199 while (it.HasNext()) {
1199 prefix = it.GetNext(); 1200 prefix = it.GetNext();
1200 prefix_name = prefix.name(); 1201 prefix_name = prefix.name();
1201 ASSERT(!prefix_name.IsNull()); 1202 ASSERT(!prefix_name.IsNull());
1202 prefix_name = String::Concat(prefix_name, 1203 prefix_name = String::Concat(prefix_name,
1203 String::Handle(isolate_, String::New("."))); 1204 String::Handle(isolate_, Symbols::Dot()));
1204 for (int i = 0; i < prefix.num_libs(); i++) { 1205 for (int i = 0; i < prefix.num_libs(); i++) {
1205 imported = prefix.GetLibrary(i); 1206 imported = prefix.GetLibrary(i);
1206 CollectLibraryFields(field_list, imported, prefix_name, false); 1207 CollectLibraryFields(field_list, imported, prefix_name, false);
1207 } 1208 }
1208 } 1209 }
1209 return Array::MakeArray(field_list); 1210 return Array::MakeArray(field_list);
1210 } 1211 }
1211 1212
1212 1213
1213 void Debugger::VisitObjectPointers(ObjectPointerVisitor* visitor) { 1214 void Debugger::VisitObjectPointers(ObjectPointerVisitor* visitor) {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 } 1558 }
1558 1559
1559 1560
1560 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 1561 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
1561 ASSERT(bpt->next() == NULL); 1562 ASSERT(bpt->next() == NULL);
1562 bpt->set_next(code_breakpoints_); 1563 bpt->set_next(code_breakpoints_);
1563 code_breakpoints_ = bpt; 1564 code_breakpoints_ = bpt;
1564 } 1565 }
1565 1566
1566 } // namespace dart 1567 } // namespace dart
OLDNEW
« no previous file with comments | « vm/dart_entry_test.cc ('k') | vm/debugger_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698