Lines Matching defs:promise
225 // Create the promise for the async function.
226 Node* promise = effect =
245 closure, receiver, promise, context, effect, control);
262 // Load the promise from the {async_function_object}.
263 Node* promise = effect = graph()->NewNode(
269 // point will still return the {promise} instead of the result of the
271 Node* parameters[] = {promise};
280 effect = graph()->NewNode(javascript()->RejectPromise(), promise, reason,
282 ReplaceWithValue(node, promise, effect, control);
283 return Replace(promise);
298 // Load the promise from the {async_function_object}.
299 Node* promise = effect = graph()->NewNode(
305 // point will still return the {promise} instead of the result of the
307 Node* parameters[] = {promise};
313 effect = graph()->NewNode(javascript()->ResolvePromise(), promise, value,
315 ReplaceWithValue(node, promise, effect, control);
316 return Replace(promise);
660 // ES section #sec-promise-resolve
687 Node* promise = effect =
689 effect = graph()->NewNode(javascript()->ResolvePromise(), promise, value,
691 ReplaceWithValue(node, promise, effect, control);
692 return Replace(promise);
695 // ES section #sec-promise-resolve-functions
698 Node* promise = NodeProperties::GetValueInput(node, 0);
738 // Simply fulfill the {promise} with the {resolution}.
740 graph()->NewNode(javascript()->FulfillPromise(), promise, resolution,