Home | History | Annotate | Download | only in regexp
      1 // 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 
     10 #ifdef V8_INTERPRETED_REGEXP
     11 
     12 #include "src/regexp/jsregexp.h"
     13 
     14 namespace v8 {
     15 namespace internal {
     16 
     17 class 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 
     30 #endif  // V8_INTERPRETED_REGEXP
     31 
     32 #endif  // V8_REGEXP_INTERPRETER_IRREGEXP_H_
     33