Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 8cd2de21b6c7513752456a06b374a8246cc4cb8e..0fcdb457c1c62ef6595313e586ffe06c118e88d3 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2189,6 +2189,14 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionMarkNameShouldPrintAsAnonymous) { |
} |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsGenerator) { |
+ NoHandleAllocation ha(isolate); |
+ ASSERT(args.length() == 1); |
+ CONVERT_ARG_CHECKED(JSFunction, f, 0); |
+ return isolate->heap()->ToBoolean(f->shared()->is_generator()); |
+} |
+ |
+ |
RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionRemovePrototype) { |
NoHandleAllocation ha(isolate); |
ASSERT(args.length() == 1); |