| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 7288f38171eb75f6c4e15106817249b4b0b950fe..f1907e0d3d629e864f6ddd10f1e577b73f151993 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -2292,6 +2292,15 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetExpectedNumberOfProperties) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSGeneratorObject) {
|
| + NoHandleAllocation ha(isolate);
|
| + ASSERT(args.length() == 1);
|
| + CONVERT_ARG_CHECKED(JSFunction, function, 0);
|
| + ASSERT(function->shared()->is_generator());
|
| + return isolate->heap()->AllocateJSGeneratorObject(function);
|
| +}
|
| +
|
| +
|
| MUST_USE_RESULT static MaybeObject* CharFromCode(Isolate* isolate,
|
| Object* char_code) {
|
| uint32_t code;
|
|
|