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

Side by Side Diff: runtime/include/dart_debugger_api.h

Issue 23609032: Add "function" as an argument to Dart_ActivationFrameInfo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: PTAL Created 7 years, 3 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/bin/dbg_message.cc ('k') | runtime/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) 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 #ifndef INCLUDE_DART_DEBUGGER_API_H_ 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_
6 #define INCLUDE_DART_DEBUGGER_API_H_ 6 #define INCLUDE_DART_DEBUGGER_API_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint;
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 * 383 *
384 * \return A handle to the True object if no error occurs. 384 * \return A handle to the True object if no error occurs.
385 */ 385 */
386 DART_EXPORT Dart_Handle Dart_GetActivationFrame( 386 DART_EXPORT Dart_Handle Dart_GetActivationFrame(
387 Dart_StackTrace trace, 387 Dart_StackTrace trace,
388 int frame_index, 388 int frame_index,
389 Dart_ActivationFrame* frame); 389 Dart_ActivationFrame* frame);
390 390
391 391
392 /** 392 /**
393 * DEPRECATED -- Use Dart_ActivationframeGetLocation instead. 393 * DEPRECATED -- Use Dart_ActivationFrameGetLocation instead.
394 * 394 *
395 * Returns information about the given activation frame. 395 * Returns information about the given activation frame.
396 * \function_name receives a string handle with the qualified 396 * \function_name receives a string handle with the qualified
397 * function name. 397 * function name.
398 * \script_url receives a string handle with the url of the 398 * \script_url receives a string handle with the url of the
399 * source script that contains the frame's function. 399 * source script that contains the frame's function.
400 * \line_number receives the line number in the script. 400 * \line_number receives the line number in the script.
401 * \library_id receives the id of the library in which the 401 * \library_id receives the id of the library in which the
402 * function in this frame is defined. 402 * function in this frame is defined.
403 * 403 *
404 * Any or all of the out parameters above may be NULL. 404 * Any or all of the out parameters above may be NULL.
405 * 405 *
406 * Requires there to be a current isolate. 406 * Requires there to be a current isolate.
407 * 407 *
408 * \return A handle to the True object if no error occurs. 408 * \return A handle to the True object if no error occurs.
409 */ 409 */
410 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( 410 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo(
411 Dart_ActivationFrame activation_frame, 411 Dart_ActivationFrame activation_frame,
412 Dart_Handle* function_name, 412 Dart_Handle* function_name,
413 Dart_Handle* script_url, 413 Dart_Handle* script_url,
414 intptr_t* line_number, 414 intptr_t* line_number,
415 intptr_t* library_id); 415 intptr_t* library_id);
416 416
417 417
418 /** 418 /**
419 * Returns code location of the given activation frame. 419 * Returns code location of the given activation frame.
420 * 420 *
421 * \function_name receives a string handle with the qualified 421 * \function_name receives a string handle with the qualified
422 * function name. 422 * function name.
423 * \function receives a handle to the function.
423 * \location.script_url receives a string handle with the url of 424 * \location.script_url receives a string handle with the url of
424 * the source script that contains the frame's function. 425 * the source script that contains the frame's function.
425 * Receives a null handle if there is no textual location 426 * Receives a null handle if there is no textual location
426 * that corresponds to the frame, e.g. for implicitly 427 * that corresponds to the frame, e.g. for implicitly
427 * generated constructors. 428 * generated constructors.
428 * \location.library_id receives the id of the library in which the 429 * \location.library_id receives the id of the library in which the
429 * function in this frame is defined. 430 * function in this frame is defined.
430 * \location.token_pos receives the token position in the script. 431 * \location.token_pos receives the token position in the script.
431 * 432 *
432 * Any of the out parameters above may be NULL. 433 * Any of the out parameters above may be NULL.
433 * 434 *
434 * Requires there to be a current isolate. 435 * Requires there to be a current isolate.
435 * 436 *
436 * \return A handle to the True object if no error occurs. 437 * \return A handle to the True object if no error occurs.
437 * A handle to the False object if there is no text 438 * A handle to the False object if there is no text
438 * position for the frame. 439 * position for the frame.
439 */ 440 */
440 DART_EXPORT Dart_Handle Dart_ActivationFrameGetLocation( 441 DART_EXPORT Dart_Handle Dart_ActivationFrameGetLocation(
441 Dart_ActivationFrame activation_frame, 442 Dart_ActivationFrame activation_frame,
442 Dart_Handle* function_name, 443 Dart_Handle* function_name,
444 Dart_Handle* function,
443 Dart_CodeLocation* location); 445 Dart_CodeLocation* location);
444 446
445 447
446 /** 448 /**
447 * Returns an array containing all the local variable names and values of 449 * Returns an array containing all the local variable names and values of
448 * the given \activation_frame. 450 * the given \activation_frame.
449 * 451 *
450 * Requires there to be a current isolate. 452 * Requires there to be a current isolate.
451 * 453 *
452 * \return A handle to an array containing variable names and 454 * \return A handle to an array containing variable names and
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 * \param request A REST-like string, which uses '/' to separate 676 * \param request A REST-like string, which uses '/' to separate
675 * parameters. The first parameter is always the status type. 677 * parameters. The first parameter is always the status type.
676 * 678 *
677 * \return The requested status as a JSON formatted string, with the 679 * \return The requested status as a JSON formatted string, with the
678 * contents defined by the status plug-in. The caller is responsible 680 * contents defined by the status plug-in. The caller is responsible
679 * for freeing this string. 681 * for freeing this string.
680 */ 682 */
681 DART_EXPORT char* Dart_GetVmStatus(const char* request); 683 DART_EXPORT char* Dart_GetVmStatus(const char* request);
682 684
683 #endif // INCLUDE_DART_DEBUGGER_API_H_ 685 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | runtime/vm/debugger_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698