Lines Matching refs:native_context
22 Node* const native_context = LoadNativeContext(context); in AllocateJSPromise() local
24 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in AllocateJSPromise()
94 Node* promise, Node* debug_event, Node* native_context) { in CreatePromiseResolvingFunctions() argument
96 promise, debug_event, native_context); in CreatePromiseResolvingFunctions()
98 native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX); in CreatePromiseResolvingFunctions()
100 native_context, in CreatePromiseResolvingFunctions()
105 native_context, in CreatePromiseResolvingFunctions()
117 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
125 LoadContextElement(native_context, in TF_BUILTIN()
132 AllocateAndInitJSPromise(native_context, UndefinedConstant()); in TF_BUILTIN()
137 CreatePromiseResolvingFunctions(promise, debug_event, native_context); in TF_BUILTIN()
162 CreatePromiseGetCapabilitiesExecutorContext(capability, native_context); in TF_BUILTIN()
164 native_context, Context::PROMISE_GET_CAPABILITIES_EXECUTOR_SHARED_FUN); in TF_BUILTIN()
166 native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX); in TF_BUILTIN()
171 native_context, constructor, executor); in TF_BUILTIN()
193 Node* PromiseBuiltinsAssembler::CreatePromiseContext(Node* native_context, in CreatePromiseContext() argument
198 InitializeFunctionContext(native_context, context, slots); in CreatePromiseContext()
203 Node* promise_capability, Node* native_context) { in CreatePromiseAllResolveElementContext() argument
204 CSA_ASSERT(this, IsNativeContext(native_context)); in CreatePromiseAllResolveElementContext()
208 native_context, Context::JS_ARRAY_PACKED_ELEMENTS_MAP_INDEX); in CreatePromiseAllResolveElementContext()
213 CreatePromiseContext(native_context, kPromiseAllResolveElementLength); in CreatePromiseAllResolveElementContext()
225 Node* context, TNode<Smi> index, Node* native_context) { in CreatePromiseAllResolveElementFunction() argument
229 CSA_ASSERT(this, IsNativeContext(native_context)); in CreatePromiseAllResolveElementFunction()
232 native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX); in CreatePromiseAllResolveElementFunction()
234 native_context, Context::PROMISE_ALL_RESOLVE_ELEMENT_SHARED_FUN); in CreatePromiseAllResolveElementFunction()
246 Node* promise, Node* debug_event, Node* native_context) { in CreatePromiseResolvingFunctionsContext() argument
248 CreatePromiseContext(native_context, kPromiseContextLength); in CreatePromiseResolvingFunctionsContext()
257 Node* promise_capability, Node* native_context) { in CreatePromiseGetCapabilitiesExecutorContext() argument
259 Node* context = CreatePromiseContext(native_context, kContextLength); in CreatePromiseGetCapabilitiesExecutorContext()
539 Node* PromiseBuiltinsAssembler::InvokeThen(Node* native_context, Node* receiver, in InvokeThen() argument
541 CSA_ASSERT(this, IsNativeContext(native_context)); in InvokeThen()
551 BranchIfPromiseThenLookupChainIntact(native_context, receiver_map, &if_fast, in InvokeThen()
557 LoadContextElement(native_context, Context::PROMISE_THEN_INDEX); in InvokeThen()
561 native_context, then, receiver, args...); in InvokeThen()
568 Node* const then = GetProperty(native_context, receiver, in InvokeThen()
572 native_context, then, receiver, args...); in InvokeThen()
581 Node* PromiseBuiltinsAssembler::InvokeResolve(Node* native_context, in InvokeResolve() argument
585 CSA_ASSERT(this, IsNativeContext(native_context)); in InvokeResolve()
593 BranchIfPromiseResolveLookupChainIntact(native_context, constructor, &if_fast, in InvokeResolve()
598 Node* const result = CallBuiltin(Builtins::kPromiseResolve, native_context, in InvokeResolve()
609 GetProperty(native_context, constructor, factory()->resolve_string()); in InvokeResolve()
614 native_context, resolve, constructor, value); in InvokeResolve()
626 Node* native_context, Node* constructor, Label* if_fast, Label* if_slow) { in BranchIfPromiseResolveLookupChainIntact() argument
627 CSA_ASSERT(this, IsNativeContext(native_context)); in BranchIfPromiseResolveLookupChainIntact()
631 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in BranchIfPromiseResolveLookupChainIntact()
637 Node* native_context, Node* promise_map, Label* if_fast, Label* if_slow) { in BranchIfPromiseSpeciesLookupChainIntact() argument
638 CSA_ASSERT(this, IsNativeContext(native_context)); in BranchIfPromiseSpeciesLookupChainIntact()
642 LoadContextElement(native_context, Context::PROMISE_PROTOTYPE_INDEX); in BranchIfPromiseSpeciesLookupChainIntact()
650 Node* native_context, Node* receiver_map, Label* if_fast, Label* if_slow) { in BranchIfPromiseThenLookupChainIntact() argument
652 CSA_ASSERT(this, IsNativeContext(native_context)); in BranchIfPromiseThenLookupChainIntact()
657 LoadContextElement(native_context, Context::PROMISE_PROTOTYPE_INDEX); in BranchIfPromiseThenLookupChainIntact()
664 Node* context, Node* native_context, Node* promise_constructor, in BranchIfAccessCheckFailed() argument
693 Branch(WordEqual(native_context, native_function_context), &has_access, in BranchIfAccessCheckFailed()
832 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
834 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in TF_BUILTIN()
840 BranchIfAccessCheckFailed(context, native_context, promise_fun, executor, in TF_BUILTIN()
884 var_result.value(), TrueConstant(), native_context); in TF_BUILTIN()
968 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
970 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in TF_BUILTIN()
973 native_context, promise_map, &fast_promise_capability, &slow_constructor); in TF_BUILTIN()
977 SpeciesConstructor(native_context, promise, promise_fun); in TF_BUILTIN()
1055 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
1056 Return(InvokeThen(native_context, receiver, on_fulfilled, on_rejected)); in TF_BUILTIN()
1061 Node* const native_context = Parameter(Descriptor::kContext); in TF_BUILTIN() local
1069 CSA_ASSERT(this, IsNativeContext(native_context)); in TF_BUILTIN()
1081 LoadContextElement(native_context, Context::PROMISE_THEN_INDEX); in TF_BUILTIN()
1087 BranchIfPromiseSpeciesLookupChainIntact(native_context, thenable_map, in TF_BUILTIN()
1118 TailCallBuiltin(Builtins::kPerformPromiseThen, native_context, thenable, in TF_BUILTIN()
1128 promise_to_resolve, FalseConstant(), native_context); in TF_BUILTIN()
1134 native_context, then, thenable, resolve, reject); in TF_BUILTIN()
1143 native_context, reject, UndefinedConstant(), var_exception.value()); in TF_BUILTIN()
1297 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
1299 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in TF_BUILTIN()
1313 LoadContextElement(native_context, Context::PROMISE_PROTOTYPE_INDEX); in TF_BUILTIN()
1404 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
1407 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in TF_BUILTIN()
1441 Node* on_finally, Node* constructor, Node* native_context) { in CreatePromiseFinallyFunctions() argument
1443 CreatePromiseContext(native_context, kPromiseFinallyContextLength); in CreatePromiseFinallyFunctions()
1449 native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX); in CreatePromiseFinallyFunctions()
1451 native_context, Context::PROMISE_THEN_FINALLY_SHARED_FUN); in CreatePromiseFinallyFunctions()
1455 native_context, Context::PROMISE_CATCH_FINALLY_SHARED_FUN); in CreatePromiseFinallyFunctions()
1469 Node* native_context) { in CreateValueThunkFunction() argument
1471 native_context, kPromiseValueThunkOrReasonContextLength); in CreateValueThunkFunction()
1474 native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX); in CreateValueThunkFunction()
1476 native_context, Context::PROMISE_VALUE_THUNK_FINALLY_SHARED_FUN); in CreateValueThunkFunction()
1510 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
1511 Node* const value_thunk = CreateValueThunkFunction(value, native_context); in TF_BUILTIN()
1514 Return(InvokeThen(native_context, promise, value_thunk)); in TF_BUILTIN()
1526 Node* native_context) { in CreateThrowerFunction() argument
1528 native_context, kPromiseValueThunkOrReasonContextLength); in CreateThrowerFunction()
1531 native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX); in CreateThrowerFunction()
1533 native_context, Context::PROMISE_THROWER_FINALLY_SHARED_FUN); in CreateThrowerFunction()
1567 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
1568 Node* const thrower = CreateThrowerFunction(reason, native_context); in TF_BUILTIN()
1571 Return(InvokeThen(native_context, promise, thrower)); in TF_BUILTIN()
1587 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
1589 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in TF_BUILTIN()
1594 BranchIfPromiseSpeciesLookupChainIntact(native_context, receiver_map, in TF_BUILTIN()
1629 CreatePromiseFinallyFunctions(on_finally, constructor, native_context); in TF_BUILTIN()
1646 Return(InvokeThen(native_context, receiver, var_then_finally.value(), in TF_BUILTIN()
1758 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
1763 LoadContextElement(native_context, Context::PROMISE_PROTOTYPE_INDEX); in TF_BUILTIN()
1771 LoadContextElement(native_context, Context::PROMISE_THEN_INDEX); in TF_BUILTIN()
1786 LoadContextElement(native_context, Context::ITERATOR_RESULT_MAP_INDEX); in TF_BUILTIN()
1813 promise, var_then.value(), resolution, native_context); in TF_BUILTIN()
1814 TailCallBuiltin(Builtins::kEnqueueMicrotask, native_context, task); in TF_BUILTIN()
1841 Node* const native_context = LoadNativeContext(context); in PerformPromiseAll() local
1846 native_context, instrumenting, in PerformPromiseAll()
1850 CreatePromiseAllResolveElementContext(capability, native_context); in PerformPromiseAll()
1863 LoadContextElement(native_context, Context::ITERATOR_RESULT_MAP_INDEX); in PerformPromiseAll()
1865 native_context, iterator, &done_loop, fast_iterator_result_map, in PerformPromiseAll()
1873 native_context, next, fast_iterator_result_map, if_exception, in PerformPromiseAll()
1878 InvokeResolve(native_context, constructor, next_value, &close_iterator, in PerformPromiseAll()
1906 resolve_element_context, index, native_context); in PerformPromiseAll()
1911 GetProperty(native_context, next_promise, factory()->then_string()); in PerformPromiseAll()
1916 native_context, then, next_promise, resolve_element_fun, in PerformPromiseAll()
1922 SetPromiseHandledByIfTrue(native_context, instrumenting, then_call, [=]() { in PerformPromiseAll()
1942 CallRuntime(Runtime::kThrowRangeError, native_context, in PerformPromiseAll()
1952 iter_assembler.IteratorCloseOnException(native_context, iterator, in PerformPromiseAll()
2002 native_context, resolve, UndefinedConstant(), values_array); in PerformPromiseAll()
2084 TNode<Context> native_context = LoadNativeContext(context); in TF_BUILTIN() local
2085 StoreObjectField(function, JSFunction::kContextOffset, native_context); in TF_BUILTIN()
2224 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
2226 native_context, Context::ITERATOR_RESULT_MAP_INDEX); in TF_BUILTIN()
2245 InvokeResolve(native_context, receiver, next_value, &close_iterator, in TF_BUILTIN()