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

Unified Diff: runtime/vm/debugger_api_impl.cc

Issue 23609032: Add "function" as an argument to Dart_ActivationFrameInfo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/debugger_api_impl.cc
diff --git a/runtime/vm/debugger_api_impl.cc b/runtime/vm/debugger_api_impl.cc
index f9bbe1cf8b40b1791f1bd7a5d63283945a0f0764..fd867d6c03d46795470e6367f6f4afb26ac80323 100644
--- a/runtime/vm/debugger_api_impl.cc
+++ b/runtime/vm/debugger_api_impl.cc
@@ -229,6 +229,7 @@ DART_EXPORT Dart_Handle Dart_GetStackTrace(Dart_StackTrace* trace) {
DART_EXPORT Dart_Handle Dart_ActivationFrameInfo(
Dart_ActivationFrame activation_frame,
Dart_Handle* function_name,
+ Dart_Handle* function,
Dart_Handle* script_url,
intptr_t* line_number,
intptr_t* library_id) {
@@ -238,6 +239,9 @@ DART_EXPORT Dart_Handle Dart_ActivationFrameInfo(
if (function_name != NULL) {
*function_name = Api::NewHandle(isolate, frame->QualifiedFunctionName());
}
+ if (function != NULL) {
+ *function = Api::NewHandle(isolate, frame->function().raw());
+ }
if (script_url != NULL) {
*script_url = Api::NewHandle(isolate, frame->SourceUrl());
}

Powered by Google App Engine
This is Rietveld 408576698