Home | History | Annotate | Download | only in builtins

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,
52 Node* const initial_exception_value = nullptr) {
53 auto get_method = [=](Node* const sync_iterator) {
61 Node* const context, Node* const iterator, Node* const sent_value,
65 Node* const initial_exception_value = nullptr) {
66 auto get_method = [=](Node* const sync_iterator) {
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,
103 Node* const error =
117 Node* const context, Node* const iterator, Node* const sent_value,
121 Node* const initial_exception_value) {
122 Node* const native_context = LoadNativeContext(context);
123 Node* const promise = AllocateAndInitJSPromise(context);
133 Node* const sync_iterator =
136 Node* const method = get_method(sync_iterator);
147 Node* const iter_result = CallJS(CodeFactory::Call(isolate()), context,
151 Node* value;
152 Node* done;
155 Node* const wrapper = AllocateAndInitJSPromise(context);
164 Node* const on_fulfilled = CreateUnwrapClosure(native_context, done);
173 Node* const exception = var_exception.value();
182 Node* const context, Node* const iterator, Node* const sent_value,
186 Node* const initial_exception_value) {
187 Node* const native_context = LoadNativeContext(context);
188 Node* const promise = AllocateAndInitJSPromise(context);
198 Node* const sync_iterator =
201 Node* const method = get_method(sync_iterator);
212 Node* const iter_result = CallJS(CodeFactory::Call(isolate()), context,
216 Node* value;
217 Node* done;
221 Node* const promise_fun =
226 Node* const valueWrapper = CallBuiltin(Builtins::kPromiseResolve,
232 Node* const on_fulfilled = CreateUnwrapClosure(native_context, done);
241 Node* const exception = var_exception.value();
247 std::pair<Node*, Node*> AsyncFromSyncBuiltinsAssembler::LoadIteratorResult(
248 Node* const context, Node* const native_context, Node* const iter_result,
254 Node* const iter_result_map = LoadMap(iter_result);
257 Node* const fast_iter_result_map =
277 Node* const done =
283 Node* const value =
296 Node* const error = MakeTypeError(
309 Node* const result =
324 Node* const iterator = Parameter(Descriptor::kReceiver);
325 Node* const value = Parameter(Descriptor::kValue);
326 Node* const context = Parameter(Descriptor::kContext);
328 auto get_method = [=](Node* const unused) {
338 Node* const iterator = Parameter(Descriptor::kReceiver);
339 Node* const value = Parameter(Descriptor::kValue);
340 Node* const context = Parameter(Descriptor::kContext);
342 auto get_method = [=](Node* const unused) {
354 Node* const iterator = Parameter(Descriptor::kReceiver);
355 Node* const value = Parameter(Descriptor::kValue);
356 Node* const context = Parameter(Descriptor::kContext);
358 auto if_return_undefined = [=](Node* const native_context,
359 Node* const promise, Label* if_exception) {
362 Node* const iter_result = CallBuiltin(Builtins::kCreateIterResultObject,
379 Node* const iterator = Parameter(Descriptor::kReceiver);
380 Node* const value = Parameter(Descriptor::kValue);
381 Node* const context = Parameter(Descriptor::kContext);
383 auto if_return_undefined = [=](Node* const native_context,
384 Node* const promise, Label* if_exception) {
387 Node* const iter_result = CallBuiltin(Builtins::kCreateIterResultObject,
406 Node* const iterator = Parameter(Descriptor::kReceiver);
407 Node* const reason = Parameter(Descriptor::kReason);
408 Node* const context = Parameter(Descriptor::kContext);
410 auto if_throw_undefined = [=](Node* const native_context, Node* const promise,
421 Node* const iterator = Parameter(Descriptor::kReceiver);
422 Node* const reason = Parameter(Descriptor::kReason);
423 Node* const context = Parameter(Descriptor::kContext);
425 auto if_throw_undefined = [=](Node* const native_context, Node* const promise,