OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 #ifndef V8_REGEXP_REGEXP_STACK_H_ | 5 #ifndef V8_REGEXP_REGEXP_STACK_H_ |
6 #define V8_REGEXP_REGEXP_STACK_H_ | 6 #define V8_REGEXP_REGEXP_STACK_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/base/logging.h" |
| 9 #include "src/base/macros.h" |
9 #include "src/globals.h" | 10 #include "src/globals.h" |
10 #include "src/isolate.h" | |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 class RegExpStack; | 15 class RegExpStack; |
16 | 16 |
17 // Maintains a per-v8thread stack area that can be used by irregexp | 17 // Maintains a per-v8thread stack area that can be used by irregexp |
18 // implementation for its backtracking stack. | 18 // implementation for its backtracking stack. |
19 // Since there is only one stack area, the Irregexp implementation is not | 19 // Since there is only one stack area, the Irregexp implementation is not |
20 // re-entrant. I.e., no regular expressions may be executed in the same thread | 20 // re-entrant. I.e., no regular expressions may be executed in the same thread |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 friend class ExternalReference; | 120 friend class ExternalReference; |
121 friend class Isolate; | 121 friend class Isolate; |
122 friend class RegExpStackScope; | 122 friend class RegExpStackScope; |
123 | 123 |
124 DISALLOW_COPY_AND_ASSIGN(RegExpStack); | 124 DISALLOW_COPY_AND_ASSIGN(RegExpStack); |
125 }; | 125 }; |
126 | 126 |
127 }} // namespace v8::internal | 127 }} // namespace v8::internal |
128 | 128 |
129 #endif // V8_REGEXP_REGEXP_STACK_H_ | 129 #endif // V8_REGEXP_REGEXP_STACK_H_ |
OLD | NEW |