Lines Matching refs:isolate
22 HandleScope scope(isolate); in RUNTIME_FUNCTION()
27 if (isolate->debug()->is_active()) { in RUNTIME_FUNCTION()
30 rejected_promise = isolate->GetPromiseOnStackOnThrow(); in RUNTIME_FUNCTION()
32 isolate->RunPromiseHook(PromiseHookType::kResolve, promise, in RUNTIME_FUNCTION()
33 isolate->factory()->undefined_value()); in RUNTIME_FUNCTION()
34 isolate->debug()->OnPromiseReject(rejected_promise, value); in RUNTIME_FUNCTION()
38 isolate->ReportPromiseReject(promise, value, in RUNTIME_FUNCTION()
41 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
46 HandleScope scope(isolate); in RUNTIME_FUNCTION()
49 isolate->ReportPromiseReject(promise, reason, in RUNTIME_FUNCTION()
51 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
56 HandleScope scope(isolate); in RUNTIME_FUNCTION()
59 isolate->ReportPromiseReject(promise, resolution, in RUNTIME_FUNCTION()
61 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
66 HandleScope scope(isolate); in RUNTIME_FUNCTION()
70 isolate->ReportPromiseReject(promise, Handle<Object>(), in RUNTIME_FUNCTION()
72 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
76 HandleScope scope(isolate); in RUNTIME_FUNCTION()
80 Handle<CallableTask> microtask = isolate->factory()->NewCallableTask( in RUNTIME_FUNCTION()
81 function, handle(function->native_context(), isolate)); in RUNTIME_FUNCTION()
85 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
89 HandleScope scope(isolate); in RUNTIME_FUNCTION()
91 MicrotasksScope::PerformCheckpoint(reinterpret_cast<v8::Isolate*>(isolate)); in RUNTIME_FUNCTION()
92 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
96 HandleScope scope(isolate); in RUNTIME_FUNCTION()
103 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); in RUNTIME_FUNCTION()
104 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
108 HandleScope scope(isolate); in RUNTIME_FUNCTION()
116 SealHandleScope shs(isolate); in RUNTIME_FUNCTION()
121 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
125 HandleScope scope(isolate); in RUNTIME_FUNCTION()
129 isolate->RunPromiseHook(PromiseHookType::kInit, promise, parent); in RUNTIME_FUNCTION()
130 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
135 Handle<JSPromise> AwaitPromisesInitCommon(Isolate* isolate, in AwaitPromisesInitCommon() argument
144 Handle<JSPromise> throwaway = isolate->factory()->NewJSPromiseWithoutHook(); in AwaitPromisesInitCommon()
145 isolate->RunPromiseHook(PromiseHookType::kInit, throwaway, promise); in AwaitPromisesInitCommon()
159 if (isolate->debug()->is_active()) { in AwaitPromisesInitCommon()
162 isolate, reject_handler, in AwaitPromisesInitCommon()
163 isolate->factory()->promise_forwarding_handler_symbol(), in AwaitPromisesInitCommon()
164 isolate->factory()->true_value(), StoreOrigin::kMaybeKeyed, in AwaitPromisesInitCommon()
172 Object::SetProperty(isolate, throwaway, in AwaitPromisesInitCommon()
173 isolate->factory()->promise_handled_by_symbol(), in AwaitPromisesInitCommon()
186 HandleScope scope(isolate); in RUNTIME_FUNCTION()
192 return *AwaitPromisesInitCommon(isolate, value, promise, outer_promise, in RUNTIME_FUNCTION()
198 HandleScope scope(isolate); in RUNTIME_FUNCTION()
207 isolate->RunPromiseHook(PromiseHookType::kInit, promise, outer_promise); in RUNTIME_FUNCTION()
208 return *AwaitPromisesInitCommon(isolate, value, promise, outer_promise, in RUNTIME_FUNCTION()
213 HandleScope scope(isolate); in RUNTIME_FUNCTION()
217 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
219 if (isolate->debug()->is_active()) isolate->PushPromise(promise); in RUNTIME_FUNCTION()
220 isolate->RunPromiseHook(PromiseHookType::kBefore, promise, in RUNTIME_FUNCTION()
221 isolate->factory()->undefined_value()); in RUNTIME_FUNCTION()
222 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
226 HandleScope scope(isolate); in RUNTIME_FUNCTION()
230 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
232 if (isolate->debug()->is_active()) isolate->PopPromise(); in RUNTIME_FUNCTION()
233 isolate->RunPromiseHook(PromiseHookType::kAfter, promise, in RUNTIME_FUNCTION()
234 isolate->factory()->undefined_value()); in RUNTIME_FUNCTION()
235 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
239 HandleScope scope(isolate); in RUNTIME_FUNCTION()
245 debug_event->BooleanValue(isolate)); in RUNTIME_FUNCTION()
249 HandleScope scope(isolate); in RUNTIME_FUNCTION()
254 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, in RUNTIME_FUNCTION()
263 HandleScope scope(isolate); in RUNTIME_FUNCTION()
269 DCHECK_EQ(*target, *isolate->aggregate_error_function()); in RUNTIME_FUNCTION()
273 isolate, result, in RUNTIME_FUNCTION()
274 ErrorUtils::Construct(isolate, target, new_target, message)); in RUNTIME_FUNCTION()
282 HandleScope scope(isolate); in RUNTIME_FUNCTION()
305 isolate, MessageTemplate(message->value()), arg0, arg1, arg2); in RUNTIME_FUNCTION()
309 isolate, result, in RUNTIME_FUNCTION()
310 ErrorUtils::Construct(isolate, isolate->aggregate_error_function(), in RUNTIME_FUNCTION()
311 isolate->aggregate_error_function(), in RUNTIME_FUNCTION()