blob: 887fab6d0e73bb585131359e79b4e926334dce37 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2011 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// A simple interpreter for the Irregexp byte code.
6
7#ifndef V8_REGEXP_INTERPRETER_IRREGEXP_H_
8#define V8_REGEXP_INTERPRETER_IRREGEXP_H_
9
Ben Murdoch097c5b22016-05-18 11:27:45 +010010#ifdef V8_INTERPRETED_REGEXP
11
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000012#include "src/regexp/jsregexp.h"
13
14namespace v8 {
15namespace internal {
16
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000017class IrregexpInterpreter {
18 public:
19 static RegExpImpl::IrregexpResult Match(Isolate* isolate,
20 Handle<ByteArray> code,
21 Handle<String> subject,
22 int* captures,
23 int start_position);
24};
25
26
27} // namespace internal
28} // namespace v8
29
Ben Murdoch097c5b22016-05-18 11:27:45 +010030#endif // V8_INTERPRETED_REGEXP
31
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000032#endif // V8_REGEXP_INTERPRETER_IRREGEXP_H_