OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_PARSING_PARSER_BASE_H | 5 #ifndef V8_PARSING_PARSER_BASE_H |
6 #define V8_PARSING_PARSER_BASE_H | 6 #define V8_PARSING_PARSER_BASE_H |
7 | 7 |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/base/hashmap.h" | 10 #include "src/base/hashmap.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 ALLOW_ACCESSORS(harmony_async_await); | 245 ALLOW_ACCESSORS(harmony_async_await); |
246 ALLOW_ACCESSORS(harmony_restrictive_generators); | 246 ALLOW_ACCESSORS(harmony_restrictive_generators); |
247 ALLOW_ACCESSORS(harmony_trailing_commas); | 247 ALLOW_ACCESSORS(harmony_trailing_commas); |
248 SCANNER_ACCESSORS(harmony_exponentiation_operator); | 248 SCANNER_ACCESSORS(harmony_exponentiation_operator); |
249 | 249 |
250 #undef SCANNER_ACCESSORS | 250 #undef SCANNER_ACCESSORS |
251 #undef ALLOW_ACCESSORS | 251 #undef ALLOW_ACCESSORS |
252 | 252 |
253 uintptr_t stack_limit() const { return stack_limit_; } | 253 uintptr_t stack_limit() const { return stack_limit_; } |
254 | 254 |
| 255 void set_stack_limit(uintptr_t stack_limit) { stack_limit_ = stack_limit; } |
| 256 |
255 protected: | 257 protected: |
256 enum AllowRestrictedIdentifiers { | 258 enum AllowRestrictedIdentifiers { |
257 kAllowRestrictedIdentifiers, | 259 kAllowRestrictedIdentifiers, |
258 kDontAllowRestrictedIdentifiers | 260 kDontAllowRestrictedIdentifiers |
259 }; | 261 }; |
260 | 262 |
261 enum Mode { | 263 enum Mode { |
262 PARSE_LAZILY, | 264 PARSE_LAZILY, |
263 PARSE_EAGERLY | 265 PARSE_EAGERLY |
264 }; | 266 }; |
(...skipping 3392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3657 has_seen_constructor_ = true; | 3659 has_seen_constructor_ = true; |
3658 return; | 3660 return; |
3659 } | 3661 } |
3660 } | 3662 } |
3661 | 3663 |
3662 | 3664 |
3663 } // namespace internal | 3665 } // namespace internal |
3664 } // namespace v8 | 3666 } // namespace v8 |
3665 | 3667 |
3666 #endif // V8_PARSING_PARSER_BASE_H | 3668 #endif // V8_PARSING_PARSER_BASE_H |
OLD | NEW |