| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 26c35cdf7761c00476277d5b826f8ee259706d2a..ac3217101ea8aab039ced0b3fc624428f0676d69 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -426,6 +426,7 @@ const int kStubMinorKeyBits = kSmiValueSize - kStubMajorKeyBits - 1;
|
| V(JS_PROMISE_TYPE) \
|
| V(JS_REGEXP_TYPE) \
|
| V(JS_ERROR_TYPE) \
|
| + V(JS_ASYNC_FROM_SYNC_ITERATOR_TYPE) \
|
| V(JS_STRING_ITERATOR_TYPE) \
|
| \
|
| V(JS_TYPED_ARRAY_KEY_ITERATOR_TYPE) \
|
| @@ -774,6 +775,7 @@ enum InstanceType {
|
| JS_PROMISE_TYPE,
|
| JS_REGEXP_TYPE,
|
| JS_ERROR_TYPE,
|
| + JS_ASYNC_FROM_SYNC_ITERATOR_TYPE,
|
| JS_STRING_ITERATOR_TYPE,
|
|
|
| JS_TYPED_ARRAY_KEY_ITERATOR_TYPE,
|
| @@ -1083,6 +1085,7 @@ template <class C> inline bool Is(Object* obj);
|
| V(JSArray) \
|
| V(JSArrayBuffer) \
|
| V(JSArrayBufferView) \
|
| + V(JSAsyncFromSyncIterator) \
|
| V(JSCollection) \
|
| V(JSTypedArray) \
|
| V(JSArrayIterator) \
|
| @@ -10627,6 +10630,28 @@ class JSArrayIterator : public JSObject {
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayIterator);
|
| };
|
|
|
| +class JSAsyncFromSyncIterator : public JSObject {
|
| + public:
|
| + DECLARE_CAST(JSAsyncFromSyncIterator)
|
| +
|
| + DECLARE_PRINTER(JSAsyncFromSyncIterator)
|
| + DECLARE_VERIFIER(JSAsyncFromSyncIterator)
|
| +
|
| + // Async-from-Sync Iterator instances are ordinary objects that inherit
|
| + // properties from the %AsyncFromSyncIteratorPrototype% intrinsic object.
|
| + // Async-from-Sync Iterator instances are initially created with the internal
|
| + // slots listed in Table 4.
|
| + // (proposal-async-iteration/#table-async-from-sync-iterator-internal-slots)
|
| + DECL_ACCESSORS(sync_iterator, HeapObject)
|
| +
|
| + // Offsets of object fields.
|
| + static const int kSyncIteratorOffset = JSObject::kHeaderSize;
|
| + static const int kSize = kSyncIteratorOffset + kPointerSize;
|
| +
|
| + private:
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(JSAsyncFromSyncIterator);
|
| +};
|
| +
|
| class JSStringIterator : public JSObject {
|
| public:
|
| // Dispatched behavior.
|
|
|