| Index: src/runtime/runtime-internal.cc
|
| diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
|
| index e0e583e4021122d75999f9c1de54b5c08da14c00..294e4fb138ea92769546a1270931a80d406e5839 100644
|
| --- a/src/runtime/runtime-internal.cc
|
| +++ b/src/runtime/runtime-internal.cc
|
| @@ -416,5 +416,15 @@ RUNTIME_FUNCTION(Runtime_GetTypeFeedbackVector) {
|
| CONVERT_ARG_CHECKED(JSFunction, function, 0);
|
| return function->shared()->feedback_vector();
|
| }
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_GetCallerJSFunction) {
|
| + SealHandleScope shs(isolate);
|
| + StackFrameIterator it(isolate);
|
| + RUNTIME_ASSERT(it.frame()->type() == StackFrame::STUB);
|
| + it.Advance();
|
| + RUNTIME_ASSERT(it.frame()->type() == StackFrame::JAVA_SCRIPT);
|
| + return JavaScriptFrame::cast(it.frame())->function();
|
| +}
|
| } // namespace internal
|
| } // namespace v8
|
|
|