| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 180f0137d1bf7d0a21e2296660719adb77eeb9e8..25148a2308fa652c486ab0f11ac8b105a73af120 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) {
|
| + SealHandleScope shs(isolate);
|
| + DCHECK(args.length() == 1);
|
| +
|
| + CONVERT_ARG_CHECKED(JSFunction, f, 0);
|
| + return f->DebugName();
|
| +}
|
| +
|
| +
|
| // A testing entry. Returns statement position which is the closest to
|
| // source_position.
|
| RUNTIME_FUNCTION(Runtime_GetFunctionCodePositionFromSource) {
|
|
|