OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "include/dart_debugger_api.h" | 5 #include "include/dart_debugger_api.h" |
6 | 6 |
7 #include "vm/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
9 #include "vm/debugger.h" | 9 #include "vm/debugger.h" |
10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 Dart_Breakpoint breakpoint_in) { | 218 Dart_Breakpoint breakpoint_in) { |
219 Isolate* isolate = Isolate::Current(); | 219 Isolate* isolate = Isolate::Current(); |
220 DARTSCOPE(isolate); | 220 DARTSCOPE(isolate); |
221 | 221 |
222 CHECK_AND_CAST(Breakpoint, breakpoint, breakpoint_in); | 222 CHECK_AND_CAST(Breakpoint, breakpoint, breakpoint_in); |
223 isolate->debugger()->RemoveBreakpoint(breakpoint); | 223 isolate->debugger()->RemoveBreakpoint(breakpoint); |
224 return Api::True(); | 224 return Api::True(); |
225 } | 225 } |
226 | 226 |
227 | 227 |
| 228 DART_EXPORT Dart_Handle Dart_SetStepOver() { |
| 229 Isolate* isolate = Isolate::Current(); |
| 230 DARTSCOPE(isolate); |
| 231 isolate->debugger()->SetStepOver(); |
| 232 return Api::True(); |
| 233 } |
| 234 |
| 235 |
| 236 DART_EXPORT Dart_Handle Dart_SetStepInto() { |
| 237 Isolate* isolate = Isolate::Current(); |
| 238 DARTSCOPE(isolate); |
| 239 isolate->debugger()->SetStepInto(); |
| 240 return Api::True(); |
| 241 } |
| 242 |
| 243 |
| 244 DART_EXPORT Dart_Handle Dart_SetStepOut() { |
| 245 Isolate* isolate = Isolate::Current(); |
| 246 DARTSCOPE(isolate); |
| 247 isolate->debugger()->SetStepOut(); |
| 248 return Api::True(); |
| 249 } |
| 250 |
| 251 |
228 DART_EXPORT Dart_Handle Dart_GetInstanceFields(Dart_Handle object_in) { | 252 DART_EXPORT Dart_Handle Dart_GetInstanceFields(Dart_Handle object_in) { |
229 Isolate* isolate = Isolate::Current(); | 253 Isolate* isolate = Isolate::Current(); |
230 DARTSCOPE(isolate); | 254 DARTSCOPE(isolate); |
231 Instance& obj = Instance::Handle(); | 255 Instance& obj = Instance::Handle(); |
232 UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in); | 256 UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in); |
233 Array& fields = Array::Handle(); | 257 Array& fields = Array::Handle(); |
234 fields = isolate->debugger()->GetInstanceFields(obj); | 258 fields = isolate->debugger()->GetInstanceFields(obj); |
235 return Api::NewLocalHandle(fields); | 259 return Api::NewLocalHandle(fields); |
236 } | 260 } |
237 | 261 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 for (int i = 0; i < num_libs; i++) { | 366 for (int i = 0; i < num_libs; i++) { |
343 ASSERT(!lib.IsNull()); | 367 ASSERT(!lib.IsNull()); |
344 lib_url = lib.url(); | 368 lib_url = lib.url(); |
345 library_list.SetAt(i, lib_url); | 369 library_list.SetAt(i, lib_url); |
346 lib = lib.next_registered(); | 370 lib = lib.next_registered(); |
347 } | 371 } |
348 return Api::NewLocalHandle(library_list); | 372 return Api::NewLocalHandle(library_list); |
349 } | 373 } |
350 | 374 |
351 } // namespace dart | 375 } // namespace dart |
OLD | NEW |