| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |