Index: src/runtime/runtime-function.cc |
diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
index 081f092f253d0decee3fbb089be37b28531c1179..939bd53e6a82799a6ce53a466fb4074a8146964c 100644 |
--- a/src/runtime/runtime-function.cc |
+++ b/src/runtime/runtime-function.cc |
@@ -96,6 +96,14 @@ RUNTIME_FUNCTION(Runtime_FunctionGetPositionForOffset) { |
return Smi::FromInt(abstract_code->SourcePosition(offset)); |
} |
+RUNTIME_FUNCTION(Runtime_FunctionGetContextData) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 1); |
+ |
+ CONVERT_ARG_CHECKED(JSFunction, fun, 0); |
+ FixedArray* array = fun->native_context()->embedder_data(); |
+ return array->get(v8::Context::kDebugIdIndex); |
+} |
RUNTIME_FUNCTION(Runtime_FunctionSetInstanceClassName) { |
SealHandleScope shs(isolate); |