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

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

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/interpreter-irregexp.h ('k') | src/regexp/regexp-macro-assembler-irregexp.h » ('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 #ifdef V8_INTERPRETED_REGEXP
8
7 #include "src/regexp/interpreter-irregexp.h" 9 #include "src/regexp/interpreter-irregexp.h"
8 10
9 #include "src/ast/ast.h" 11 #include "src/ast/ast.h"
10 #include "src/regexp/bytecodes-irregexp.h" 12 #include "src/regexp/bytecodes-irregexp.h"
11 #include "src/regexp/jsregexp.h" 13 #include "src/regexp/jsregexp.h"
12 #include "src/regexp/regexp-macro-assembler.h" 14 #include "src/regexp/regexp-macro-assembler.h"
13 #include "src/unicode.h" 15 #include "src/unicode.h"
14 #include "src/utils.h" 16 #include "src/utils.h"
15 17
16 namespace v8 { 18 namespace v8 {
17 namespace internal { 19 namespace internal {
18 20
19
20 typedef unibrow::Mapping<unibrow::Ecma262Canonicalize> Canonicalize; 21 typedef unibrow::Mapping<unibrow::Ecma262Canonicalize> Canonicalize;
21 22
22 static bool BackRefMatchesNoCase(Canonicalize* interp_canonicalize, 23 static bool BackRefMatchesNoCase(Canonicalize* interp_canonicalize,
23 int from, 24 int from,
24 int current, 25 int current,
25 int len, 26 int len,
26 Vector<const uc16> subject) { 27 Vector<const uc16> subject) {
27 for (int i = 0; i < len; i++) { 28 for (int i = 0; i < len; i++) {
28 unibrow::uchar old_char = subject[from++]; 29 unibrow::uchar old_char = subject[from++];
29 unibrow::uchar new_char = subject[current++]; 30 unibrow::uchar new_char = subject[current++];
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 code_base, 613 code_base,
613 subject_vector, 614 subject_vector,
614 registers, 615 registers,
615 start_position, 616 start_position,
616 previous_char); 617 previous_char);
617 } 618 }
618 } 619 }
619 620
620 } // namespace internal 621 } // namespace internal
621 } // namespace v8 622 } // namespace v8
623
624 #endif // V8_INTERPRETED_REGEXP
OLDNEW
« no previous file with comments | « src/regexp/interpreter-irregexp.h ('k') | src/regexp/regexp-macro-assembler-irregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698