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 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 5843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5854 ACCESSORS(FunctionTemplateInfo, instance_template, Object, | 5854 ACCESSORS(FunctionTemplateInfo, instance_template, Object, |
5855 kInstanceTemplateOffset) | 5855 kInstanceTemplateOffset) |
5856 ACCESSORS(FunctionTemplateInfo, class_name, Object, kClassNameOffset) | 5856 ACCESSORS(FunctionTemplateInfo, class_name, Object, kClassNameOffset) |
5857 ACCESSORS(FunctionTemplateInfo, signature, Object, kSignatureOffset) | 5857 ACCESSORS(FunctionTemplateInfo, signature, Object, kSignatureOffset) |
5858 ACCESSORS(FunctionTemplateInfo, instance_call_handler, Object, | 5858 ACCESSORS(FunctionTemplateInfo, instance_call_handler, Object, |
5859 kInstanceCallHandlerOffset) | 5859 kInstanceCallHandlerOffset) |
5860 ACCESSORS(FunctionTemplateInfo, access_check_info, Object, | 5860 ACCESSORS(FunctionTemplateInfo, access_check_info, Object, |
5861 kAccessCheckInfoOffset) | 5861 kAccessCheckInfoOffset) |
5862 ACCESSORS(FunctionTemplateInfo, shared_function_info, Object, | 5862 ACCESSORS(FunctionTemplateInfo, shared_function_info, Object, |
5863 kSharedFunctionInfoOffset) | 5863 kSharedFunctionInfoOffset) |
| 5864 ACCESSORS(FunctionTemplateInfo, cached_property_name, Object, |
| 5865 kCachedPropertyNameOffset) |
5864 | 5866 |
5865 SMI_ACCESSORS(FunctionTemplateInfo, flag, kFlagOffset) | 5867 SMI_ACCESSORS(FunctionTemplateInfo, flag, kFlagOffset) |
5866 | 5868 |
5867 ACCESSORS(ObjectTemplateInfo, constructor, Object, kConstructorOffset) | 5869 ACCESSORS(ObjectTemplateInfo, constructor, Object, kConstructorOffset) |
5868 ACCESSORS(ObjectTemplateInfo, data, Object, kDataOffset) | 5870 ACCESSORS(ObjectTemplateInfo, data, Object, kDataOffset) |
5869 | 5871 |
5870 int ObjectTemplateInfo::internal_field_count() const { | 5872 int ObjectTemplateInfo::internal_field_count() const { |
5871 Object* value = data(); | 5873 Object* value = data(); |
5872 DCHECK(value->IsSmi()); | 5874 DCHECK(value->IsSmi()); |
5873 return InternalFieldCount::decode(Smi::cast(value)->value()); | 5875 return InternalFieldCount::decode(Smi::cast(value)->value()); |
(...skipping 2557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8431 #undef WRITE_INT64_FIELD | 8433 #undef WRITE_INT64_FIELD |
8432 #undef READ_BYTE_FIELD | 8434 #undef READ_BYTE_FIELD |
8433 #undef WRITE_BYTE_FIELD | 8435 #undef WRITE_BYTE_FIELD |
8434 #undef NOBARRIER_READ_BYTE_FIELD | 8436 #undef NOBARRIER_READ_BYTE_FIELD |
8435 #undef NOBARRIER_WRITE_BYTE_FIELD | 8437 #undef NOBARRIER_WRITE_BYTE_FIELD |
8436 | 8438 |
8437 } // namespace internal | 8439 } // namespace internal |
8438 } // namespace v8 | 8440 } // namespace v8 |
8439 | 8441 |
8440 #endif // V8_OBJECTS_INL_H_ | 8442 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |