OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // A simple interpreter for the Irregexp byte code. | 5 // A simple interpreter for the Irregexp byte code. |
6 | 6 |
7 #ifndef V8_REGEXP_INTERPRETER_IRREGEXP_H_ | 7 #ifndef V8_REGEXP_INTERPRETER_IRREGEXP_H_ |
8 #define V8_REGEXP_INTERPRETER_IRREGEXP_H_ | 8 #define V8_REGEXP_INTERPRETER_IRREGEXP_H_ |
9 | 9 |
10 #include "src/regexp/jsregexp.h" | 10 #include "src/regexp/jsregexp.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 | 15 |
16 class IrregexpInterpreter { | 16 class IrregexpInterpreter { |
17 public: | 17 public: |
18 static RegExpImpl::IrregexpResult Match(Isolate* isolate, | 18 static RegExpImpl::IrregexpResult Match(Isolate* isolate, |
19 Handle<ByteArray> code, | 19 Handle<ByteArray> code, |
20 Handle<String> subject, | 20 Handle<String> subject, |
21 int* captures, | 21 int* captures, |
22 int start_position); | 22 int start_position); |
23 }; | 23 }; |
24 | 24 |
25 | 25 |
26 } } // namespace v8::internal | 26 } // namespace internal |
| 27 } // namespace v8 |
27 | 28 |
28 #endif // V8_REGEXP_INTERPRETER_IRREGEXP_H_ | 29 #endif // V8_REGEXP_INTERPRETER_IRREGEXP_H_ |
OLD | NEW |