Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: src/objects-inl.h

Issue 2657413002: No need to collect literal counts.
Patch Set: Rebase. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698