46 DCHECK(function->shared()->HasBytecodeArray());
52 function->shared()->GetBytecodeArray(isolate);
54 length = bytecode->parameter_count_without_receiver() +
55 bytecode->register_count();
58 isolate->factory()->NewFixedArray(length);
61 isolate->factory()->NewJSGeneratorObject(function);
64 raw_generator->set_function(*function);
65 raw_generator->set_context(isolate->context());
66 raw_generator->set_receiver(*
receiver);
67 raw_generator->set_parameters_and_registers(*parameters_and_registers);
70 if (IsJSAsyncGeneratorObject(*raw_generator)) {