Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: src/preparser.h

Issue 1405313002: [es6] Fix scoping for default parameters in arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix class literal handling Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pattern-rewriter.cc ('k') | src/scopes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/pattern-rewriter.cc ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698