mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
714e7e6f9e
TEST=manually adjusting ulimit Change-Id: I1c1a9ba583275017cfbd92cd850a8bc33920aac9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211461 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
29 lines
937 B
C++
29 lines
937 B
C++
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// A simple interpreter for the Irregexp byte code.
|
|
|
|
#ifndef RUNTIME_VM_REGEXP_INTERPRETER_H_
|
|
#define RUNTIME_VM_REGEXP_INTERPRETER_H_
|
|
|
|
#include "vm/allocation.h"
|
|
#include "vm/object.h"
|
|
#include "vm/zone.h"
|
|
|
|
namespace dart {
|
|
|
|
class IrregexpInterpreter : public AllStatic {
|
|
public:
|
|
// Returns True in case of a success, False in case of a failure,
|
|
// Null in case of internal exception,
|
|
// Error in case VM error has to propagated up to the caller.
|
|
static ObjectPtr Match(const TypedData& bytecode,
|
|
const String& subject,
|
|
int32_t* captures,
|
|
intptr_t start_position);
|
|
};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_VM_REGEXP_INTERPRETER_H_
|