| 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_INTERPRETER_IRREGEXP_H_ | 7 #ifndef V8_REGEXP_INTERPRETER_IRREGEXP_H_ | 
| 8 #define V8_INTERPRETER_IRREGEXP_H_ | 8 #define V8_REGEXP_INTERPRETER_IRREGEXP_H_ | 
| 9 | 9 | 
| 10 namespace v8 { | 10 namespace v8 { | 
| 11 namespace internal { | 11 namespace internal { | 
| 12 | 12 | 
| 13 | 13 | 
| 14 class IrregexpInterpreter { | 14 class IrregexpInterpreter { | 
| 15  public: | 15  public: | 
| 16   static RegExpImpl::IrregexpResult Match(Isolate* isolate, | 16   static RegExpImpl::IrregexpResult Match(Isolate* isolate, | 
| 17                                           Handle<ByteArray> code, | 17                                           Handle<ByteArray> code, | 
| 18                                           Handle<String> subject, | 18                                           Handle<String> subject, | 
| 19                                           int* captures, | 19                                           int* captures, | 
| 20                                           int start_position); | 20                                           int start_position); | 
| 21 }; | 21 }; | 
| 22 | 22 | 
| 23 | 23 | 
| 24 } }  // namespace v8::internal | 24 } }  // namespace v8::internal | 
| 25 | 25 | 
| 26 #endif  // V8_INTERPRETER_IRREGEXP_H_ | 26 #endif  // V8_REGEXP_INTERPRETER_IRREGEXP_H_ | 
| OLD | NEW | 
|---|