summaryrefslogtreecommitdiff
path: root/chromium/v8/src/regexp/interpreter-irregexp.h
blob: 244af990914eb3e47fbc16a4dc62373d1f286160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2011 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.

// A simple interpreter for the Irregexp byte code.

#ifndef V8_REGEXP_INTERPRETER_IRREGEXP_H_
#define V8_REGEXP_INTERPRETER_IRREGEXP_H_

#include "src/regexp/jsregexp.h"

namespace v8 {
namespace internal {


class IrregexpInterpreter {
 public:
  static RegExpImpl::IrregexpResult Match(Isolate* isolate,
                                          Handle<ByteArray> code,
                                          Handle<String> subject,
                                          int* captures,
                                          int start_position);
};


}  // namespace internal
}  // namespace v8

#endif  // V8_REGEXP_INTERPRETER_IRREGEXP_H_