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

Side by Side Diff: src/ast/variables.h

Issue 2472063002: Preparse lazy function parameters (Closed)
Patch Set: IsArrowFunction Created 4 years, 1 month 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/ast/scopes.cc ('k') | src/parsing/parser.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_AST_VARIABLES_H_ 5 #ifndef V8_AST_VARIABLES_H_
6 #define V8_AST_VARIABLES_H_ 6 #define V8_AST_VARIABLES_H_
7 7
8 #include "src/ast/ast-value-factory.h" 8 #include "src/ast/ast-value-factory.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/zone/zone.h" 10 #include "src/zone/zone.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 : public BitField16<bool, LocationField::kNext, 1> {}; 148 : public BitField16<bool, LocationField::kNext, 1> {};
149 class IsUsedField 149 class IsUsedField
150 : public BitField16<bool, ForceContextAllocationField::kNext, 1> {}; 150 : public BitField16<bool, ForceContextAllocationField::kNext, 1> {};
151 class InitializationFlagField 151 class InitializationFlagField
152 : public BitField16<InitializationFlag, IsUsedField::kNext, 2> {}; 152 : public BitField16<InitializationFlag, IsUsedField::kNext, 2> {};
153 class MaybeAssignedFlagField 153 class MaybeAssignedFlagField
154 : public BitField16<MaybeAssignedFlag, InitializationFlagField::kNext, 154 : public BitField16<MaybeAssignedFlag, InitializationFlagField::kNext,
155 2> {}; 155 2> {};
156 Variable** next() { return &next_; } 156 Variable** next() { return &next_; }
157 friend List; 157 friend List;
158 // To reset next to nullptr upon resetting after preparsing.
159 // TODO(verwaest): Remove once we properly preparse parameters.
160 friend class DeclarationScope;
161 }; 158 };
162 } // namespace internal 159 } // namespace internal
163 } // namespace v8 160 } // namespace v8
164 161
165 #endif // V8_AST_VARIABLES_H_ 162 #endif // V8_AST_VARIABLES_H_
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698