Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 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 | |
Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame] | 10 | #ifdef V8_INTERPRETED_REGEXP |
| 11 | |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 12 | #include "src/regexp/jsregexp.h" |
| 13 | |
| 14 | namespace v8 { |
| 15 | namespace internal { |
| 16 | |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 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 | |
Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame] | 30 | #endif // V8_INTERPRETED_REGEXP |
| 31 | |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 32 | #endif // V8_REGEXP_INTERPRETER_IRREGEXP_H_ |