Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: runtime/vm/regexp_interpreter.h

Issue 1201383002: Port irregexp bytecode compiler and interpreter from V8 r24065. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // A simple interpreter for the Irregexp byte code.
6
7 #ifndef VM_REGEXP_INTERPRETER_H_
8 #define VM_REGEXP_INTERPRETER_H_
9
10 #include "vm/object.h"
11
12 namespace dart {
13
14 class IrregexpInterpreter {
15 public:
16 enum IrregexpResult {
17 RE_FAILURE = 0,
18 RE_SUCCESS = 1,
19 RE_EXCEPTION = -1
20 };
21
22 static IrregexpResult Match(const TypedData& bytecode,
23 const String& subject,
24 int32_t* captures,
25 intptr_t start_position,
26 Zone* zone);
27 };
28
29 } // namespace dart
30
31 #endif // VM_REGEXP_INTERPRETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698