Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 1856396094fadd005c80c0fdffe1fa8074a43c5f..42e60127b8b18dce3fd9f3ee4f81dfae16d762d7 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -2613,6 +2613,15 @@ RUNTIME_FUNCTION(Runtime_FunctionGetInferredName) { |
} |
+RUNTIME_FUNCTION(Runtime_FunctionGetDebugName) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ |
+ CONVERT_ARG_HANDLE_CHECKED(JSFunction, f, 0); |
+ return *JSFunction::GetDebugName(f); |
+} |
+ |
+ |
// A testing entry. Returns statement position which is the closest to |
// source_position. |
RUNTIME_FUNCTION(Runtime_GetFunctionCodePositionFromSource) { |