Lines Matching defs:iterator
8 #include "src/builtins/builtins-iterator-gen.h"
191 TorqueStructIteratorRecord iterator =
194 CSA_DCHECK(this, Word32BinaryNot(IsUndefined(iterator.object)));
204 context, iterator, &exit, fast_iterator_result_map);
215 IteratorCloseOnException(context, iterator);
492 // object that still has original iteration behavior. In case of the iterator,
493 // the iterator also must not have been partially consumed.
510 // Transitions the iterator to the non obsolete backing store.
521 const TNode<IteratorType> iterator);
608 // Map.prototype.values() iterator. The iterator is assumed to satisfy
610 // iterator and iterate directly on the underlying hash table. In the end it
611 // will update the state of the iterator to 'exhausted'.
613 TNode<JSMapIterator> iterator);
616 // Set.prototype.values() iterator, or a Set. The |iterable| is assumed to
618 // iterator and iterate directly on the underlying hash table. In the end, if
619 // |iterable| is an iterator, it will update the state of the iterator to
724 const TNode<HeapObject> iterator =
726 StoreMapNoWriteBarrier(iterator, iterator_map);
727 StoreObjectFieldRoot(iterator, IteratorType::kPropertiesOrHashOffset,
729 StoreObjectFieldRoot(iterator, IteratorType::kElementsOffset,
731 StoreObjectFieldNoWriteBarrier(iterator, IteratorType::kTableOffset, table);
732 StoreObjectFieldNoWriteBarrier(iterator, IteratorType::kIndexOffset,
734 return iterator;
857 BranchIfIterableWithOriginalKeyOrValueMapIterator(TNode<Object> iterator,
863 // Check if iterator is a keys or values JSMapIterator.
864 GotoIf(TaggedIsSmi(iterator), if_false);
865 TNode<Map> iter_map = LoadMap(CAST(iterator));
873 // Check that the iterator is not partially consumed.
875 LoadObjectField(CAST(iterator), JSMapIterator::kIndexOffset);
880 // Check if the iterator object has the original %MapIteratorPrototype%.
938 // Check that the iterator is not partially consumed.
943 // Check if the iterator object has the original SetIterator prototype.
973 TNode<Context> context, TNode<JSMapIterator> iterator) {
974 // Transition the {iterator} table if necessary.
978 TransitionAndUpdate<JSMapIterator, OrderedHashMap>(iterator);
1016 InstanceTypeEqual(LoadInstanceType(iterator), JS_MAP_KEY_ITERATOR_TYPE),
1027 CSA_DCHECK(this, InstanceTypeEqual(LoadInstanceType(iterator),
1049 // Set the {iterator} to exhausted.
1050 StoreObjectFieldRoot(iterator, JSMapIterator::kTableOffset,
1052 StoreObjectFieldNoWriteBarrier(iterator, JSMapIterator::kIndexOffset,
1059 auto iterator = Parameter<JSMapIterator>(Descriptor::kSource);
1060 Return(MapIteratorToList(context, iterator));
1134 // Set the {iterable} to exhausted if it's an iterator.
1408 const TNode<IteratorType> iterator) {
1410 CAST(LoadObjectField(iterator, IteratorType::kTableOffset)),
1411 LoadAndUntagObjectField(iterator, IteratorType::kIndexOffset),
1412 [this, iterator](const TNode<TableType> table,
1414 // Update the {iterator} with the new state.
1415 StoreObjectField(iterator, IteratorType::kTableOffset, table);
1416 StoreObjectFieldNoWriteBarrier(iterator, IteratorType::kIndexOffset,