OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |