interpreter-irregexp.h 821 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
#include "src/regexp/jsregexp.h"

12 13
namespace v8 {
namespace internal {
14 15 16

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


25 26
}  // namespace internal
}  // namespace v8
27

28
#endif  // V8_REGEXP_INTERPRETER_IRREGEXP_H_