Lines Matching full:generator
28 Handle<JSGeneratorObject> generator = in RUNTIME_FUNCTION() local
30 generator->set_function(*function); in RUNTIME_FUNCTION()
31 generator->set_context(isolate->context()); in RUNTIME_FUNCTION()
32 generator->set_receiver(*receiver); in RUNTIME_FUNCTION()
33 generator->set_register_file(*register_file); in RUNTIME_FUNCTION()
34 generator->set_continuation(JSGeneratorObject::kGeneratorExecuting); in RUNTIME_FUNCTION()
35 return *generator; in RUNTIME_FUNCTION()
41 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
43 generator->set_continuation(JSGeneratorObject::kGeneratorClosed); in RUNTIME_FUNCTION()
51 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
53 return generator->function(); in RUNTIME_FUNCTION()
59 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
61 return generator->receiver(); in RUNTIME_FUNCTION()
67 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
69 return generator->context(); in RUNTIME_FUNCTION()
75 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
77 return generator->input_or_debug_pos(); in RUNTIME_FUNCTION()
83 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
85 return Smi::FromInt(generator->resume_mode()); in RUNTIME_FUNCTION()
91 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
93 return Smi::FromInt(generator->continuation()); in RUNTIME_FUNCTION()
99 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
101 if (!generator->is_suspended()) return isolate->heap()->undefined_value(); in RUNTIME_FUNCTION()
102 return Smi::FromInt(generator->source_position()); in RUNTIME_FUNCTION()