| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 5c2a5a5750af59b1d44c1a8ad84917b7d70e1021..dcb1652e9c8a113fd46e714cfddbdc65563a87e3 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -2610,6 +2610,15 @@ RUNTIME_FUNCTION(Runtime_FunctionGetInferredName) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(Runtime_FunctionGetDebugName) {
|
| + SealHandleScope shs(isolate);
|
| + DCHECK(args.length() == 1);
|
| +
|
| + CONVERT_ARG_CHECKED(JSFunction, f, 0);
|
| + return f->shared()->DebugName();
|
| +}
|
| +
|
| +
|
| // A testing entry. Returns statement position which is the closest to
|
| // source_position.
|
| RUNTIME_FUNCTION(Runtime_GetFunctionCodePositionFromSource) {
|
|
|