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 5854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5865 kIsNamedExpressionBit) | 5865 kIsNamedExpressionBit) |
5866 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel, | 5866 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel, |
5867 kIsTopLevelBit) | 5867 kIsTopLevelBit) |
5868 | 5868 |
5869 #if V8_HOST_ARCH_32_BIT | 5869 #if V8_HOST_ARCH_32_BIT |
5870 SMI_ACCESSORS(SharedFunctionInfo, length, kLengthOffset) | 5870 SMI_ACCESSORS(SharedFunctionInfo, length, kLengthOffset) |
5871 SMI_ACCESSORS(SharedFunctionInfo, internal_formal_parameter_count, | 5871 SMI_ACCESSORS(SharedFunctionInfo, internal_formal_parameter_count, |
5872 kFormalParameterCountOffset) | 5872 kFormalParameterCountOffset) |
5873 SMI_ACCESSORS(SharedFunctionInfo, expected_nof_properties, | 5873 SMI_ACCESSORS(SharedFunctionInfo, expected_nof_properties, |
5874 kExpectedNofPropertiesOffset) | 5874 kExpectedNofPropertiesOffset) |
5875 SMI_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset) | |
5876 SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type, | 5875 SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type, |
5877 kStartPositionAndTypeOffset) | 5876 kStartPositionAndTypeOffset) |
5878 SMI_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset) | 5877 SMI_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset) |
5879 SMI_ACCESSORS(SharedFunctionInfo, function_token_position, | 5878 SMI_ACCESSORS(SharedFunctionInfo, function_token_position, |
5880 kFunctionTokenPositionOffset) | 5879 kFunctionTokenPositionOffset) |
5881 SMI_ACCESSORS(SharedFunctionInfo, compiler_hints, | 5880 SMI_ACCESSORS(SharedFunctionInfo, compiler_hints, |
5882 kCompilerHintsOffset) | 5881 kCompilerHintsOffset) |
5883 SMI_ACCESSORS(SharedFunctionInfo, opt_count_and_bailout_reason, | 5882 SMI_ACCESSORS(SharedFunctionInfo, opt_count_and_bailout_reason, |
5884 kOptCountAndBailoutReasonOffset) | 5883 kOptCountAndBailoutReasonOffset) |
5885 SMI_ACCESSORS(SharedFunctionInfo, counters, kCountersOffset) | 5884 SMI_ACCESSORS(SharedFunctionInfo, counters, kCountersOffset) |
(...skipping 29 matching lines...) Expand all Loading... |
5915 INT_ACCESSORS(holder, name, offset) | 5914 INT_ACCESSORS(holder, name, offset) |
5916 | 5915 |
5917 | 5916 |
5918 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, length, kLengthOffset) | 5917 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, length, kLengthOffset) |
5919 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, internal_formal_parameter_count, | 5918 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, internal_formal_parameter_count, |
5920 kFormalParameterCountOffset) | 5919 kFormalParameterCountOffset) |
5921 | 5920 |
5922 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, | 5921 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, |
5923 expected_nof_properties, | 5922 expected_nof_properties, |
5924 kExpectedNofPropertiesOffset) | 5923 kExpectedNofPropertiesOffset) |
5925 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, num_literals, kNumLiteralsOffset) | |
5926 | 5924 |
5927 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, end_position, kEndPositionOffset) | 5925 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, end_position, kEndPositionOffset) |
5928 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, | 5926 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, |
5929 start_position_and_type, | 5927 start_position_and_type, |
5930 kStartPositionAndTypeOffset) | 5928 kStartPositionAndTypeOffset) |
5931 | 5929 |
5932 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, | 5930 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, |
5933 function_token_position, | 5931 function_token_position, |
5934 kFunctionTokenPositionOffset) | 5932 kFunctionTokenPositionOffset) |
5935 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, | 5933 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, |
(...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8255 #undef WRITE_INT64_FIELD | 8253 #undef WRITE_INT64_FIELD |
8256 #undef READ_BYTE_FIELD | 8254 #undef READ_BYTE_FIELD |
8257 #undef WRITE_BYTE_FIELD | 8255 #undef WRITE_BYTE_FIELD |
8258 #undef NOBARRIER_READ_BYTE_FIELD | 8256 #undef NOBARRIER_READ_BYTE_FIELD |
8259 #undef NOBARRIER_WRITE_BYTE_FIELD | 8257 #undef NOBARRIER_WRITE_BYTE_FIELD |
8260 | 8258 |
8261 } // namespace internal | 8259 } // namespace internal |
8262 } // namespace v8 | 8260 } // namespace v8 |
8263 | 8261 |
8264 #endif // V8_OBJECTS_INL_H_ | 8262 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |