262b759e06
This makes it easier to see their cost in binary size tools. TEST=ci Change-Id: I6079ad9fb9b7c9450bb8d255e9a794a38ec9ae62 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388641 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
30 lines
957 B
C++
30 lines
957 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_REGEXP_INTERPRETER_H_
|
|
#define RUNTIME_VM_REGEXP_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,
|
|
int32_t start_position);
|
|
};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_VM_REGEXP_REGEXP_INTERPRETER_H_
|