js-regexp-string-iterator.tq 579 Bytes
Newer Older
Tobias Tebbi's avatar
Tobias Tebbi committed
1 2 3 4
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6 7 8 9 10
bitfield struct JSRegExpStringIteratorFlags extends uint31 {
  done: bool: 1 bit;
  global: bool: 1 bit;
  unicode: bool: 1 bit;
}

Tobias Tebbi's avatar
Tobias Tebbi committed
11 12 13 14 15 16
@generateCppClass
extern class JSRegExpStringIterator extends JSObject {
  // The [[IteratingRegExp]] internal property.
  iterating_reg_exp: JSReceiver;
  // The [[IteratedString]] internal property.
  iterated_string: String;
17
  flags: SmiTagged<JSRegExpStringIteratorFlags>;
Tobias Tebbi's avatar
Tobias Tebbi committed
18
}