| 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.h" | 10 #include "src/zone/zone.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 // The AST refers to variables via VariableProxies - placeholders for the actual | 15 // The AST refers to variables via VariableProxies - placeholders for the actual |
| 16 // variables. Variables themselves are never directly referred to from the AST, | 16 // variables. Variables themselves are never directly referred to from the AST, |
| 17 // they are maintained by scopes, and referred to from VariableProxies and Slots | 17 // they are maintained by scopes, and referred to from VariableProxies and Slots |
| 18 // after binding and variable allocation. | 18 // after binding and variable allocation. |
| 19 class Variable final : public ZoneObject { | 19 class Variable final : public ZoneObject { |
| 20 public: | 20 public: |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 class InitializationFlagField | 145 class InitializationFlagField |
| 146 : public BitField16<InitializationFlag, IsUsedField::kNext, 2> {}; | 146 : public BitField16<InitializationFlag, IsUsedField::kNext, 2> {}; |
| 147 class MaybeAssignedFlagField | 147 class MaybeAssignedFlagField |
| 148 : public BitField16<MaybeAssignedFlag, InitializationFlagField::kNext, | 148 : public BitField16<MaybeAssignedFlag, InitializationFlagField::kNext, |
| 149 2> {}; | 149 2> {}; |
| 150 }; | 150 }; |
| 151 } // namespace internal | 151 } // namespace internal |
| 152 } // namespace v8 | 152 } // namespace v8 |
| 153 | 153 |
| 154 #endif // V8_AST_VARIABLES_H_ | 154 #endif // V8_AST_VARIABLES_H_ |
| OLD | NEW |