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...) Expand 10 before | Expand all | Expand 10 after 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 | |
143 protected: | 141 protected: |
144 enum AllowRestrictedIdentifiers { | 142 enum AllowRestrictedIdentifiers { |
145 kAllowRestrictedIdentifiers, | 143 kAllowRestrictedIdentifiers, |
146 kDontAllowRestrictedIdentifiers | 144 kDontAllowRestrictedIdentifiers |
147 }; | 145 }; |
148 | 146 |
149 enum Mode { | 147 enum Mode { |
150 PARSE_LAZILY, | 148 PARSE_LAZILY, |
151 PARSE_EAGERLY | 149 PARSE_EAGERLY |
152 }; | 150 }; |
(...skipping 4040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4193 return; | 4191 return; |
4194 } | 4192 } |
4195 has_seen_constructor_ = true; | 4193 has_seen_constructor_ = true; |
4196 return; | 4194 return; |
4197 } | 4195 } |
4198 } | 4196 } |
4199 } // namespace internal | 4197 } // namespace internal |
4200 } // namespace v8 | 4198 } // namespace v8 |
4201 | 4199 |
4202 #endif // V8_PREPARSER_H | 4200 #endif // V8_PREPARSER_H |
OLD | NEW |