// Copyright 2017 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. #ifndef V8_OBJECTS_REGEXP_MATCH_INFO_H_ #define V8_OBJECTS_REGEXP_MATCH_INFO_H_ #include "src/base/compiler-specific.h" #include "src/objects/fixed-array.h" #include "src/objects/objects.h" // Has to be the last include (doesn't have include guards): #include "src/objects/object-macros.h" namespace v8 { namespace internal { class Object; class String; // TODO(jgruber): These should no longer be included here; instead, all // TorqueGeneratedFooAsserts should be emitted into a global .cc file. #include "torque-generated/src/objects/regexp-match-info-tq.inc" class RegExpMatchInfoShape final : public AllStatic { … }; // The property RegExpMatchInfo includes the matchIndices array of the last // successful regexp match (an array of start/end index pairs for the match and // all the captured substrings), the invariant is that there are at least two // capture indices. The array also contains the subject string for the last // successful match. class RegExpMatchInfo : public TaggedArrayBase<RegExpMatchInfo, RegExpMatchInfoShape> { … }; } // namespace internal } // namespace v8 #include "src/objects/object-macros-undef.h" #endif // V8_OBJECTS_REGEXP_MATCH_INFO_H_