2011-10-26 06:37:57 +00:00
|
|
|
// Copyright 2011 the V8 project authors. All rights reserved.
|
2014-04-29 06:42:26 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
2008-11-25 11:07:48 +00:00
|
|
|
|
2008-11-26 12:18:17 +00:00
|
|
|
// A simple interpreter for the Irregexp byte code.
|
2008-11-25 11:07:48 +00:00
|
|
|
|
|
|
|
#ifndef V8_INTERPRETER_IRREGEXP_H_
|
|
|
|
#define V8_INTERPRETER_IRREGEXP_H_
|
|
|
|
|
2009-05-25 10:05:56 +00:00
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
2008-11-25 11:07:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
class IrregexpInterpreter {
|
|
|
|
public:
|
2011-10-26 06:37:57 +00:00
|
|
|
static RegExpImpl::IrregexpResult Match(Isolate* isolate,
|
|
|
|
Handle<ByteArray> code,
|
|
|
|
Handle<String> subject,
|
|
|
|
int* captures,
|
|
|
|
int start_position);
|
2008-11-25 11:07:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} } // namespace v8::internal
|
|
|
|
|
|
|
|
#endif // V8_INTERPRETER_IRREGEXP_H_
|