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 8072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8083 inline void change_ic_generic_count(int delta); | 8083 inline void change_ic_generic_count(int delta); |
8084 | 8084 |
8085 inline void initialize_storage(); | 8085 inline void initialize_storage(); |
8086 | 8086 |
8087 inline void change_own_type_change_checksum(); | 8087 inline void change_own_type_change_checksum(); |
8088 inline int own_type_change_checksum(); | 8088 inline int own_type_change_checksum(); |
8089 | 8089 |
8090 inline void set_inlined_type_change_checksum(int checksum); | 8090 inline void set_inlined_type_change_checksum(int checksum); |
8091 inline bool matches_inlined_type_change_checksum(int checksum); | 8091 inline bool matches_inlined_type_change_checksum(int checksum); |
8092 | 8092 |
8093 | 8093 DECL_ACCESSORS(feedback_vector, TypeFeedbackVector) |
8094 DECLARE_CAST(TypeFeedbackInfo) | 8094 DECLARE_CAST(TypeFeedbackInfo) |
8095 | 8095 |
8096 // Dispatched behavior. | 8096 // Dispatched behavior. |
8097 DECLARE_PRINTER(TypeFeedbackInfo) | 8097 DECLARE_PRINTER(TypeFeedbackInfo) |
8098 DECLARE_VERIFIER(TypeFeedbackInfo) | 8098 DECLARE_VERIFIER(TypeFeedbackInfo) |
8099 | 8099 |
8100 static const int kStorage1Offset = HeapObject::kHeaderSize; | 8100 static const int kFeedbackVectorOffset = HeapObject::kHeaderSize; |
| 8101 static const int kStorage1Offset = kFeedbackVectorOffset + kPointerSize; |
8101 static const int kStorage2Offset = kStorage1Offset + kPointerSize; | 8102 static const int kStorage2Offset = kStorage1Offset + kPointerSize; |
8102 static const int kStorage3Offset = kStorage2Offset + kPointerSize; | 8103 static const int kStorage3Offset = kStorage2Offset + kPointerSize; |
8103 static const int kSize = kStorage3Offset + kPointerSize; | 8104 static const int kSize = kStorage3Offset + kPointerSize; |
8104 | 8105 |
8105 private: | 8106 private: |
8106 static const int kTypeChangeChecksumBits = 7; | 8107 static const int kTypeChangeChecksumBits = 7; |
8107 | 8108 |
8108 class ICTotalCountField: public BitField<int, 0, | 8109 class ICTotalCountField: public BitField<int, 0, |
8109 kSmiValueSize - kTypeChangeChecksumBits> {}; // NOLINT | 8110 kSmiValueSize - kTypeChangeChecksumBits> {}; // NOLINT |
8110 class OwnTypeChangeChecksum: public BitField<int, | 8111 class OwnTypeChangeChecksum: public BitField<int, |
(...skipping 2740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10851 } else { | 10852 } else { |
10852 value &= ~(1 << bit_position); | 10853 value &= ~(1 << bit_position); |
10853 } | 10854 } |
10854 return value; | 10855 return value; |
10855 } | 10856 } |
10856 }; | 10857 }; |
10857 | 10858 |
10858 } } // namespace v8::internal | 10859 } } // namespace v8::internal |
10859 | 10860 |
10860 #endif // V8_OBJECTS_H_ | 10861 #endif // V8_OBJECTS_H_ |
OLD | NEW |