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

Side by Side Diff: src/regexp/bytecodes-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 | « no previous file | src/regexp/interpreter-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 5
6 #ifndef V8_REGEXP_BYTECODES_IRREGEXP_H_ 6 #ifndef V8_REGEXP_BYTECODES_IRREGEXP_H_
7 #define V8_REGEXP_BYTECODES_IRREGEXP_H_ 7 #define V8_REGEXP_BYTECODES_IRREGEXP_H_
8 8
9 #ifdef V8_INTERPRETED_REGEXP
10
9 namespace v8 { 11 namespace v8 {
10 namespace internal { 12 namespace internal {
11 13
12 14
13 const int BYTECODE_MASK = 0xff; 15 const int BYTECODE_MASK = 0xff;
14 // The first argument is packed in with the byte code in one word, but so it 16 // The first argument is packed in with the byte code in one word, but so it
15 // has 24 bits, but it can be positive and negative so only use 23 bits for 17 // has 24 bits, but it can be positive and negative so only use 23 bits for
16 // positive values. 18 // positive values.
17 const unsigned int MAX_FIRST_ARG = 0x7fffffu; 19 const unsigned int MAX_FIRST_ARG = 0x7fffffu;
18 const int BYTECODE_SHIFT = 8; 20 const int BYTECODE_SHIFT = 8;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #undef DECLARE_BYTECODES 77 #undef DECLARE_BYTECODES
76 78
77 #define DECLARE_BYTECODE_LENGTH(name, code, length) \ 79 #define DECLARE_BYTECODE_LENGTH(name, code, length) \
78 static const int BC_##name##_LENGTH = length; 80 static const int BC_##name##_LENGTH = length;
79 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH) 81 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH)
80 #undef DECLARE_BYTECODE_LENGTH 82 #undef DECLARE_BYTECODE_LENGTH
81 83
82 } // namespace internal 84 } // namespace internal
83 } // namespace v8 85 } // namespace v8
84 86
87 #endif // V8_INTERPRETED_REGEXP
88
85 #endif // V8_REGEXP_BYTECODES_IRREGEXP_H_ 89 #endif // V8_REGEXP_BYTECODES_IRREGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/regexp/interpreter-irregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698