Lines Matching refs:Node
15 using compiler::Node;
23 void ThrowIfNotAsyncFromSyncIterator(Node* const context, Node* const object,
28 typedef std::function<void(Node* const context, Node* const promise,
31 typedef std::function<Node*(Node*)> SyncIteratorNodeGenerator;
33 Node* const context, Node* const iterator, Node* const sent_value,
38 Node* const initial_exception_value = nullptr);
40 Node* const context, Node* const iterator, Node* const sent_value,
45 Node* const initial_exception_value = nullptr);
48 Node* const context, Node* const iterator, Node* const sent_value, in Generate_AsyncFromSyncIteratorMethod()
52 Node* const initial_exception_value = nullptr) { in Generate_AsyncFromSyncIteratorMethod()
53 auto get_method = [=](Node* const sync_iterator) { in Generate_AsyncFromSyncIteratorMethod()
61 Node* const context, Node* const iterator, Node* const sent_value, in Generate_AsyncFromSyncIteratorMethodOptimized()
65 Node* const initial_exception_value = nullptr) { in Generate_AsyncFromSyncIteratorMethodOptimized()
66 auto get_method = [=](Node* const sync_iterator) { in Generate_AsyncFromSyncIteratorMethodOptimized()
81 std::pair<Node*, Node*> LoadIteratorResult(Node* const context,
82 Node* const native_context,
83 Node* const iter_result,
89 Node* const context, Node* const object, Label* if_exception, in ThrowIfNotAsyncFromSyncIterator()
103 Node* const error = in ThrowIfNotAsyncFromSyncIterator()
117 Node* const context, Node* const iterator, Node* const sent_value, in Generate_AsyncFromSyncIteratorMethod()
121 Node* const initial_exception_value) { in Generate_AsyncFromSyncIteratorMethod()
122 Node* const native_context = LoadNativeContext(context); in Generate_AsyncFromSyncIteratorMethod()
123 Node* const promise = AllocateAndInitJSPromise(context); in Generate_AsyncFromSyncIteratorMethod()
133 Node* const sync_iterator = in Generate_AsyncFromSyncIteratorMethod()
136 Node* const method = get_method(sync_iterator); in Generate_AsyncFromSyncIteratorMethod()
147 Node* const iter_result = CallJS(CodeFactory::Call(isolate()), context, in Generate_AsyncFromSyncIteratorMethod()
151 Node* value; in Generate_AsyncFromSyncIteratorMethod()
152 Node* done; in Generate_AsyncFromSyncIteratorMethod()
155 Node* const wrapper = AllocateAndInitJSPromise(context); in Generate_AsyncFromSyncIteratorMethod()
164 Node* const on_fulfilled = CreateUnwrapClosure(native_context, done); in Generate_AsyncFromSyncIteratorMethod()
173 Node* const exception = var_exception.value(); in Generate_AsyncFromSyncIteratorMethod()
182 Node* const context, Node* const iterator, Node* const sent_value, in Generate_AsyncFromSyncIteratorMethodOptimized()
186 Node* const initial_exception_value) { in Generate_AsyncFromSyncIteratorMethodOptimized()
187 Node* const native_context = LoadNativeContext(context); in Generate_AsyncFromSyncIteratorMethodOptimized()
188 Node* const promise = AllocateAndInitJSPromise(context); in Generate_AsyncFromSyncIteratorMethodOptimized()
198 Node* const sync_iterator = in Generate_AsyncFromSyncIteratorMethodOptimized()
201 Node* const method = get_method(sync_iterator); in Generate_AsyncFromSyncIteratorMethodOptimized()
212 Node* const iter_result = CallJS(CodeFactory::Call(isolate()), context, in Generate_AsyncFromSyncIteratorMethodOptimized()
216 Node* value; in Generate_AsyncFromSyncIteratorMethodOptimized()
217 Node* done; in Generate_AsyncFromSyncIteratorMethodOptimized()
221 Node* const promise_fun = in Generate_AsyncFromSyncIteratorMethodOptimized()
226 Node* const valueWrapper = CallBuiltin(Builtins::kPromiseResolve, in Generate_AsyncFromSyncIteratorMethodOptimized()
232 Node* const on_fulfilled = CreateUnwrapClosure(native_context, done); in Generate_AsyncFromSyncIteratorMethodOptimized()
241 Node* const exception = var_exception.value(); in Generate_AsyncFromSyncIteratorMethodOptimized()
247 std::pair<Node*, Node*> AsyncFromSyncBuiltinsAssembler::LoadIteratorResult( in LoadIteratorResult()
248 Node* const context, Node* const native_context, Node* const iter_result, in LoadIteratorResult()
254 Node* const iter_result_map = LoadMap(iter_result); in LoadIteratorResult()
257 Node* const fast_iter_result_map = in LoadIteratorResult()
277 Node* const done = in LoadIteratorResult()
283 Node* const value = in LoadIteratorResult()
296 Node* const error = MakeTypeError( in LoadIteratorResult()
309 Node* const result = in LoadIteratorResult()
324 Node* const iterator = Parameter(Descriptor::kReceiver); in TF_BUILTIN()
325 Node* const value = Parameter(Descriptor::kValue); in TF_BUILTIN()
326 Node* const context = Parameter(Descriptor::kContext); in TF_BUILTIN()
328 auto get_method = [=](Node* const unused) { in TF_BUILTIN()
338 Node* const iterator = Parameter(Descriptor::kReceiver); in TF_BUILTIN()
339 Node* const value = Parameter(Descriptor::kValue); in TF_BUILTIN()
340 Node* const context = Parameter(Descriptor::kContext); in TF_BUILTIN()
342 auto get_method = [=](Node* const unused) { in TF_BUILTIN()
354 Node* const iterator = Parameter(Descriptor::kReceiver); in TF_BUILTIN()
355 Node* const value = Parameter(Descriptor::kValue); in TF_BUILTIN()
356 Node* const context = Parameter(Descriptor::kContext); in TF_BUILTIN()
358 auto if_return_undefined = [=](Node* const native_context, in TF_BUILTIN()
359 Node* const promise, Label* if_exception) { in TF_BUILTIN()
362 Node* const iter_result = CallBuiltin(Builtins::kCreateIterResultObject, in TF_BUILTIN()
379 Node* const iterator = Parameter(Descriptor::kReceiver); in TF_BUILTIN()
380 Node* const value = Parameter(Descriptor::kValue); in TF_BUILTIN()
381 Node* const context = Parameter(Descriptor::kContext); in TF_BUILTIN()
383 auto if_return_undefined = [=](Node* const native_context, in TF_BUILTIN()
384 Node* const promise, Label* if_exception) { in TF_BUILTIN()
387 Node* const iter_result = CallBuiltin(Builtins::kCreateIterResultObject, in TF_BUILTIN()
406 Node* const iterator = Parameter(Descriptor::kReceiver); in TF_BUILTIN()
407 Node* const reason = Parameter(Descriptor::kReason); in TF_BUILTIN()
408 Node* const context = Parameter(Descriptor::kContext); in TF_BUILTIN()
410 auto if_throw_undefined = [=](Node* const native_context, Node* const promise, in TF_BUILTIN()
421 Node* const iterator = Parameter(Descriptor::kReceiver); in TF_BUILTIN()
422 Node* const reason = Parameter(Descriptor::kReason); in TF_BUILTIN()
423 Node* const context = Parameter(Descriptor::kContext); in TF_BUILTIN()
425 auto if_throw_undefined = [=](Node* const native_context, Node* const promise, in TF_BUILTIN()