interpreter-irregexp.h 885 Bytes
Newer Older
1
// Copyright 2011 the V8 project authors. All rights reserved.
2 3
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
4

5
// A simple interpreter for the Irregexp byte code.
6

7 8
#ifndef V8_REGEXP_INTERPRETER_IRREGEXP_H_
#define V8_REGEXP_INTERPRETER_IRREGEXP_H_
9

10 11
#ifdef V8_INTERPRETED_REGEXP

12 13
#include "src/regexp/jsregexp.h"

14 15
namespace v8 {
namespace internal {
16 17 18

class IrregexpInterpreter {
 public:
19 20 21 22 23
  static RegExpImpl::IrregexpResult Match(Isolate* isolate,
                                          Handle<ByteArray> code,
                                          Handle<String> subject,
                                          int* captures,
                                          int start_position);
24 25 26
};


27 28
}  // namespace internal
}  // namespace v8
29

30 31
#endif  // V8_INTERPRETED_REGEXP

32
#endif  // V8_REGEXP_INTERPRETER_IRREGEXP_H_