Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 1840f935def69df7331f1670e9be555d79f5d6b0..f206dbdd996a69e0b01c27af8ce6f04f5bc32f5c 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -954,6 +954,16 @@ void JavaScriptFrame::GetFunctions(List<SharedFunctionInfo*>* functions) const { |
functions->Add(function()->shared()); |
} |
+void JavaScriptFrame::GetFunctions( |
+ List<Handle<SharedFunctionInfo>>* functions) const { |
+ DCHECK(functions->length() == 0); |
+ List<SharedFunctionInfo*> raw_functions; |
+ GetFunctions(&raw_functions); |
+ for (const auto& raw_function : raw_functions) { |
+ functions->Add(Handle<SharedFunctionInfo>(raw_function)); |
+ } |
+} |
+ |
void JavaScriptFrame::Summarize(List<FrameSummary>* functions, |
FrameSummary::Mode mode) const { |
DCHECK(functions->length() == 0); |