OLD | NEW |
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_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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 6929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6940 | 6940 |
6941 // Indicates that this function is a generator. | 6941 // Indicates that this function is a generator. |
6942 DECL_BOOLEAN_ACCESSORS(is_generator) | 6942 DECL_BOOLEAN_ACCESSORS(is_generator) |
6943 | 6943 |
6944 // Indicates that this function is an arrow function. | 6944 // Indicates that this function is an arrow function. |
6945 DECL_BOOLEAN_ACCESSORS(is_arrow) | 6945 DECL_BOOLEAN_ACCESSORS(is_arrow) |
6946 | 6946 |
6947 // Indicates that this function is a concise method. | 6947 // Indicates that this function is a concise method. |
6948 DECL_BOOLEAN_ACCESSORS(is_concise_method) | 6948 DECL_BOOLEAN_ACCESSORS(is_concise_method) |
6949 | 6949 |
| 6950 // Indicates that this function is an accessor (getter or setter). |
| 6951 DECL_BOOLEAN_ACCESSORS(is_accessor_function) |
| 6952 |
6950 // Indicates that this function is a default constructor. | 6953 // Indicates that this function is a default constructor. |
6951 DECL_BOOLEAN_ACCESSORS(is_default_constructor) | 6954 DECL_BOOLEAN_ACCESSORS(is_default_constructor) |
6952 | 6955 |
6953 // Indicates that this function is an asm function. | 6956 // Indicates that this function is an asm function. |
6954 DECL_BOOLEAN_ACCESSORS(asm_function) | 6957 DECL_BOOLEAN_ACCESSORS(asm_function) |
6955 | 6958 |
6956 // Indicates that the the shared function info is deserialized from cache. | 6959 // Indicates that the the shared function info is deserialized from cache. |
6957 DECL_BOOLEAN_ACCESSORS(deserialized) | 6960 DECL_BOOLEAN_ACCESSORS(deserialized) |
6958 | 6961 |
6959 inline FunctionKind kind(); | 6962 inline FunctionKind kind(); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7190 kInlineBuiltin, | 7193 kInlineBuiltin, |
7191 kBoundFunction, | 7194 kBoundFunction, |
7192 kIsAnonymous, | 7195 kIsAnonymous, |
7193 kNameShouldPrintAsAnonymous, | 7196 kNameShouldPrintAsAnonymous, |
7194 kIsFunction, | 7197 kIsFunction, |
7195 kDontCache, | 7198 kDontCache, |
7196 kDontFlush, | 7199 kDontFlush, |
7197 kIsArrow, | 7200 kIsArrow, |
7198 kIsGenerator, | 7201 kIsGenerator, |
7199 kIsConciseMethod, | 7202 kIsConciseMethod, |
| 7203 kIsAccessorFunction, |
7200 kIsDefaultConstructor, | 7204 kIsDefaultConstructor, |
7201 kIsSubclassConstructor, | 7205 kIsSubclassConstructor, |
7202 kIsAsmFunction, | 7206 kIsAsmFunction, |
7203 kDeserialized, | 7207 kDeserialized, |
7204 kCompilerHintsCount // Pseudo entry | 7208 kCompilerHintsCount // Pseudo entry |
7205 }; | 7209 }; |
7206 // Add hints for other modes when they're added. | 7210 // Add hints for other modes when they're added. |
7207 STATIC_ASSERT(LANGUAGE_END == 3); | 7211 STATIC_ASSERT(LANGUAGE_END == 3); |
7208 | 7212 |
7209 class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 5> {}; | 7213 class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 6> {}; |
7210 | 7214 |
7211 class DeoptCountBits : public BitField<int, 0, 4> {}; | 7215 class DeoptCountBits : public BitField<int, 0, 4> {}; |
7212 class OptReenableTriesBits : public BitField<int, 4, 18> {}; | 7216 class OptReenableTriesBits : public BitField<int, 4, 18> {}; |
7213 class ICAgeBits : public BitField<int, 22, 8> {}; | 7217 class ICAgeBits : public BitField<int, 22, 8> {}; |
7214 | 7218 |
7215 class OptCountBits : public BitField<int, 0, 22> {}; | 7219 class OptCountBits : public BitField<int, 0, 22> {}; |
7216 class DisabledOptimizationReasonBits : public BitField<int, 22, 8> {}; | 7220 class DisabledOptimizationReasonBits : public BitField<int, 22, 8> {}; |
7217 | 7221 |
7218 private: | 7222 private: |
7219 #if V8_HOST_ARCH_32_BIT | 7223 #if V8_HOST_ARCH_32_BIT |
(...skipping 3738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10958 } else { | 10962 } else { |
10959 value &= ~(1 << bit_position); | 10963 value &= ~(1 << bit_position); |
10960 } | 10964 } |
10961 return value; | 10965 return value; |
10962 } | 10966 } |
10963 }; | 10967 }; |
10964 | 10968 |
10965 } } // namespace v8::internal | 10969 } } // namespace v8::internal |
10966 | 10970 |
10967 #endif // V8_OBJECTS_H_ | 10971 #endif // V8_OBJECTS_H_ |
OLD | NEW |