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_PREPARSER_H | 5 #ifndef V8_PREPARSER_H |
6 #define V8_PREPARSER_H | 6 #define V8_PREPARSER_H |
7 | 7 |
8 #include "src/bailout-reason.h" | 8 #include "src/bailout-reason.h" |
9 #include "src/expression-classifier.h" | 9 #include "src/expression-classifier.h" |
10 #include "src/func-name-inferrer.h" | 10 #include "src/func-name-inferrer.h" |
(...skipping 120 matching lines...) Loading... |
131 ALLOW_ACCESSORS(harmony_rest_parameters); | 131 ALLOW_ACCESSORS(harmony_rest_parameters); |
132 ALLOW_ACCESSORS(harmony_default_parameters); | 132 ALLOW_ACCESSORS(harmony_default_parameters); |
133 ALLOW_ACCESSORS(harmony_spread_calls); | 133 ALLOW_ACCESSORS(harmony_spread_calls); |
134 ALLOW_ACCESSORS(harmony_destructuring); | 134 ALLOW_ACCESSORS(harmony_destructuring); |
135 ALLOW_ACCESSORS(harmony_spread_arrays); | 135 ALLOW_ACCESSORS(harmony_spread_arrays); |
136 ALLOW_ACCESSORS(harmony_new_target); | 136 ALLOW_ACCESSORS(harmony_new_target); |
137 ALLOW_ACCESSORS(strong_mode); | 137 ALLOW_ACCESSORS(strong_mode); |
138 ALLOW_ACCESSORS(legacy_const); | 138 ALLOW_ACCESSORS(legacy_const); |
139 #undef ALLOW_ACCESSORS | 139 #undef ALLOW_ACCESSORS |
140 | 140 |
| 141 uintptr_t stack_limit() const { return stack_limit_; } |
| 142 |
141 protected: | 143 protected: |
142 enum AllowRestrictedIdentifiers { | 144 enum AllowRestrictedIdentifiers { |
143 kAllowRestrictedIdentifiers, | 145 kAllowRestrictedIdentifiers, |
144 kDontAllowRestrictedIdentifiers | 146 kDontAllowRestrictedIdentifiers |
145 }; | 147 }; |
146 | 148 |
147 enum Mode { | 149 enum Mode { |
148 PARSE_LAZILY, | 150 PARSE_LAZILY, |
149 PARSE_EAGERLY | 151 PARSE_EAGERLY |
150 }; | 152 }; |
(...skipping 4040 matching lines...) Loading... |
4191 return; | 4193 return; |
4192 } | 4194 } |
4193 has_seen_constructor_ = true; | 4195 has_seen_constructor_ = true; |
4194 return; | 4196 return; |
4195 } | 4197 } |
4196 } | 4198 } |
4197 } // namespace internal | 4199 } // namespace internal |
4198 } // namespace v8 | 4200 } // namespace v8 |
4199 | 4201 |
4200 #endif // V8_PREPARSER_H | 4202 #endif // V8_PREPARSER_H |
OLD | NEW |