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

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

Issue 135123011: Introduce cache of resolved names in library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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/compiler_stats.cc ('k') | runtime/vm/object.h » ('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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 } 892 }
893 // Signal isolate shutdown event. 893 // Signal isolate shutdown event.
894 SignalIsolateEvent(Debugger::kIsolateShutdown); 894 SignalIsolateEvent(Debugger::kIsolateShutdown);
895 } 895 }
896 896
897 897
898 static RawFunction* ResolveLibraryFunction( 898 static RawFunction* ResolveLibraryFunction(
899 const Library& library, 899 const Library& library,
900 const String& fname) { 900 const String& fname) {
901 ASSERT(!library.IsNull()); 901 ASSERT(!library.IsNull());
902 const Object& object = Object::Handle(library.LookupObject(fname)); 902 const Object& object = Object::Handle(library.ResolveName(fname));
903 if (!object.IsNull() && object.IsFunction()) { 903 if (!object.IsNull() && object.IsFunction()) {
904 return Function::Cast(object).raw(); 904 return Function::Cast(object).raw();
905 } 905 }
906 return Function::null(); 906 return Function::null();
907 } 907 }
908 908
909 909
910 void Debugger::SetSingleStep() { 910 void Debugger::SetSingleStep() {
911 resume_action_ = kSingleStep; 911 resume_action_ = kSingleStep;
912 } 912 }
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2305 } 2305 }
2306 2306
2307 2307
2308 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2308 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2309 ASSERT(bpt->next() == NULL); 2309 ASSERT(bpt->next() == NULL);
2310 bpt->set_next(code_breakpoints_); 2310 bpt->set_next(code_breakpoints_);
2311 code_breakpoints_ = bpt; 2311 code_breakpoints_ = bpt;
2312 } 2312 }
2313 2313
2314 } // namespace dart 2314 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698