| 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_STACK_H_ | 5 #ifndef V8_REGEXP_REGEXP_STACK_H_ |
| 6 #define V8_REGEXP_STACK_H_ | 6 #define V8_REGEXP_REGEXP_STACK_H_ |
| 7 |
| 8 #include "src/allocation.h" |
| 9 #include "src/globals.h" |
| 10 #include "src/isolate.h" |
| 7 | 11 |
| 8 namespace v8 { | 12 namespace v8 { |
| 9 namespace internal { | 13 namespace internal { |
| 10 | 14 |
| 11 class RegExpStack; | 15 class RegExpStack; |
| 12 | 16 |
| 13 // 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 |
| 14 // implementation for its backtracking stack. | 18 // implementation for its backtracking stack. |
| 15 // 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 |
| 16 // 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 119 |
| 116 friend class ExternalReference; | 120 friend class ExternalReference; |
| 117 friend class Isolate; | 121 friend class Isolate; |
| 118 friend class RegExpStackScope; | 122 friend class RegExpStackScope; |
| 119 | 123 |
| 120 DISALLOW_COPY_AND_ASSIGN(RegExpStack); | 124 DISALLOW_COPY_AND_ASSIGN(RegExpStack); |
| 121 }; | 125 }; |
| 122 | 126 |
| 123 }} // namespace v8::internal | 127 }} // namespace v8::internal |
| 124 | 128 |
| 125 #endif // V8_REGEXP_STACK_H_ | 129 #endif // V8_REGEXP_REGEXP_STACK_H_ |
| OLD | NEW |