OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 4386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4397 VariableLocation* location, InitializationFlag* init_flag, | 4397 VariableLocation* location, InitializationFlag* init_flag, |
4398 MaybeAssignedFlag* maybe_assigned_flag); | 4398 MaybeAssignedFlag* maybe_assigned_flag); |
4399 | 4399 |
4400 // Used for the function name variable for named function expressions, and for | 4400 // Used for the function name variable for named function expressions, and for |
4401 // the receiver. | 4401 // the receiver. |
4402 enum VariableAllocationInfo { NONE, STACK, CONTEXT, UNUSED }; | 4402 enum VariableAllocationInfo { NONE, STACK, CONTEXT, UNUSED }; |
4403 | 4403 |
4404 // Properties of scopes. | 4404 // Properties of scopes. |
4405 class ScopeTypeField : public BitField<ScopeType, 0, 4> {}; | 4405 class ScopeTypeField : public BitField<ScopeType, 0, 4> {}; |
4406 class CallsEvalField : public BitField<bool, ScopeTypeField::kNext, 1> {}; | 4406 class CallsEvalField : public BitField<bool, ScopeTypeField::kNext, 1> {}; |
4407 STATIC_ASSERT(LANGUAGE_END == 2); | 4407 STATIC_ASSERT(LAST_LANGUAGE_MODE == 1); |
4408 class LanguageModeField | 4408 class LanguageModeField |
4409 : public BitField<LanguageMode, CallsEvalField::kNext, 1> {}; | 4409 : public BitField<LanguageMode, CallsEvalField::kNext, 1> {}; |
4410 class DeclarationScopeField | 4410 class DeclarationScopeField |
4411 : public BitField<bool, LanguageModeField::kNext, 1> {}; | 4411 : public BitField<bool, LanguageModeField::kNext, 1> {}; |
4412 class ReceiverVariableField | 4412 class ReceiverVariableField |
4413 : public BitField<VariableAllocationInfo, DeclarationScopeField::kNext, | 4413 : public BitField<VariableAllocationInfo, DeclarationScopeField::kNext, |
4414 2> {}; | 4414 2> {}; |
4415 class HasNewTargetField | 4415 class HasNewTargetField |
4416 : public BitField<bool, ReceiverVariableField::kNext, 1> {}; | 4416 : public BitField<bool, ReceiverVariableField::kNext, 1> {}; |
4417 class FunctionVariableField | 4417 class FunctionVariableField |
(...skipping 6680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11098 } | 11098 } |
11099 return value; | 11099 return value; |
11100 } | 11100 } |
11101 }; | 11101 }; |
11102 | 11102 |
11103 | 11103 |
11104 } // NOLINT, false-positive due to second-order macros. | 11104 } // NOLINT, false-positive due to second-order macros. |
11105 } // NOLINT, false-positive due to second-order macros. | 11105 } // NOLINT, false-positive due to second-order macros. |
11106 | 11106 |
11107 #endif // V8_OBJECTS_H_ | 11107 #endif // V8_OBJECTS_H_ |
OLD | NEW |