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

Side by Side Diff: src/regexp/interpreter-irregexp.h

Issue 1601743002: [regexp] do not include irregexp interpreter by default. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « src/regexp/bytecodes-irregexp.h ('k') | src/regexp/interpreter-irregexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_REGEXP_INTERPRETER_IRREGEXP_H_ 7 #ifndef V8_REGEXP_INTERPRETER_IRREGEXP_H_
8 #define V8_REGEXP_INTERPRETER_IRREGEXP_H_ 8 #define V8_REGEXP_INTERPRETER_IRREGEXP_H_
9 9
10 #ifdef V8_INTERPRETED_REGEXP
11
10 #include "src/regexp/jsregexp.h" 12 #include "src/regexp/jsregexp.h"
11 13
12 namespace v8 { 14 namespace v8 {
13 namespace internal { 15 namespace internal {
14 16
15
16 class IrregexpInterpreter { 17 class IrregexpInterpreter {
17 public: 18 public:
18 static RegExpImpl::IrregexpResult Match(Isolate* isolate, 19 static RegExpImpl::IrregexpResult Match(Isolate* isolate,
19 Handle<ByteArray> code, 20 Handle<ByteArray> code,
20 Handle<String> subject, 21 Handle<String> subject,
21 int* captures, 22 int* captures,
22 int start_position); 23 int start_position);
23 }; 24 };
24 25
25 26
26 } // namespace internal 27 } // namespace internal
27 } // namespace v8 28 } // namespace v8
28 29
30 #endif // V8_INTERPRETED_REGEXP
31
29 #endif // V8_REGEXP_INTERPRETER_IRREGEXP_H_ 32 #endif // V8_REGEXP_INTERPRETER_IRREGEXP_H_
OLDNEW
« no previous file with comments | « src/regexp/bytecodes-irregexp.h ('k') | src/regexp/interpreter-irregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698