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/hashmap.h" | 10 #include "src/hashmap.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 ALLOW_ACCESSORS(natives); | 131 ALLOW_ACCESSORS(natives); |
132 ALLOW_ACCESSORS(harmony_sloppy); | 132 ALLOW_ACCESSORS(harmony_sloppy); |
133 ALLOW_ACCESSORS(harmony_sloppy_function); | 133 ALLOW_ACCESSORS(harmony_sloppy_function); |
134 ALLOW_ACCESSORS(harmony_sloppy_let); | 134 ALLOW_ACCESSORS(harmony_sloppy_let); |
135 ALLOW_ACCESSORS(harmony_restrictive_declarations); | 135 ALLOW_ACCESSORS(harmony_restrictive_declarations); |
136 ALLOW_ACCESSORS(legacy_const); | 136 ALLOW_ACCESSORS(legacy_const); |
137 ALLOW_ACCESSORS(harmony_do_expressions); | 137 ALLOW_ACCESSORS(harmony_do_expressions); |
138 ALLOW_ACCESSORS(harmony_function_name); | 138 ALLOW_ACCESSORS(harmony_function_name); |
139 ALLOW_ACCESSORS(harmony_function_sent); | 139 ALLOW_ACCESSORS(harmony_function_sent); |
140 SCANNER_ACCESSORS(harmony_exponentiation_operator); | 140 SCANNER_ACCESSORS(harmony_exponentiation_operator); |
| 141 |
| 142 #undef SCANNER_ACCESSORS |
141 #undef ALLOW_ACCESSORS | 143 #undef ALLOW_ACCESSORS |
142 | 144 |
143 uintptr_t stack_limit() const { return stack_limit_; } | 145 uintptr_t stack_limit() const { return stack_limit_; } |
144 | 146 |
145 protected: | 147 protected: |
146 enum AllowRestrictedIdentifiers { | 148 enum AllowRestrictedIdentifiers { |
147 kAllowRestrictedIdentifiers, | 149 kAllowRestrictedIdentifiers, |
148 kDontAllowRestrictedIdentifiers | 150 kDontAllowRestrictedIdentifiers |
149 }; | 151 }; |
150 | 152 |
(...skipping 2960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3111 has_seen_constructor_ = true; | 3113 has_seen_constructor_ = true; |
3112 return; | 3114 return; |
3113 } | 3115 } |
3114 } | 3116 } |
3115 | 3117 |
3116 | 3118 |
3117 } // namespace internal | 3119 } // namespace internal |
3118 } // namespace v8 | 3120 } // namespace v8 |
3119 | 3121 |
3120 #endif // V8_PARSING_PARSER_BASE_H | 3122 #endif // V8_PARSING_PARSER_BASE_H |
OLD | NEW |