OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 5823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5834 // FLAG_unbox_double_fields is disabled (in this case Map does not contain | 5834 // FLAG_unbox_double_fields is disabled (in this case Map does not contain |
5835 // |layout_descriptor| field at all). | 5835 // |layout_descriptor| field at all). |
5836 inline LayoutDescriptor* GetLayoutDescriptor(); | 5836 inline LayoutDescriptor* GetLayoutDescriptor(); |
5837 | 5837 |
5838 inline void UpdateDescriptors(DescriptorArray* descriptors, | 5838 inline void UpdateDescriptors(DescriptorArray* descriptors, |
5839 LayoutDescriptor* layout_descriptor); | 5839 LayoutDescriptor* layout_descriptor); |
5840 inline void InitializeDescriptors(DescriptorArray* descriptors, | 5840 inline void InitializeDescriptors(DescriptorArray* descriptors, |
5841 LayoutDescriptor* layout_descriptor); | 5841 LayoutDescriptor* layout_descriptor); |
5842 | 5842 |
5843 // [stub cache]: contains stubs compiled for this map. | 5843 // [stub cache]: contains stubs compiled for this map. |
5844 DECL_ACCESSORS(code_cache, Object) | 5844 DECL_ACCESSORS(code_cache, FixedArray) |
5845 | 5845 |
5846 // [dependent code]: list of optimized codes that weakly embed this map. | 5846 // [dependent code]: list of optimized codes that weakly embed this map. |
5847 DECL_ACCESSORS(dependent_code, DependentCode) | 5847 DECL_ACCESSORS(dependent_code, DependentCode) |
5848 | 5848 |
5849 // [weak cell cache]: cache that stores a weak cell pointing to this map. | 5849 // [weak cell cache]: cache that stores a weak cell pointing to this map. |
5850 DECL_ACCESSORS(weak_cell_cache, Object) | 5850 DECL_ACCESSORS(weak_cell_cache, Object) |
5851 | 5851 |
5852 inline PropertyDetails GetLastDescriptorDetails(); | 5852 inline PropertyDetails GetLastDescriptorDetails(); |
5853 | 5853 |
5854 inline int LastAdded(); | 5854 inline int LastAdded(); |
(...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8133 public: | 8133 public: |
8134 static Handle<CodeCacheHashTable> Put( | 8134 static Handle<CodeCacheHashTable> Put( |
8135 Handle<CodeCacheHashTable> table, | 8135 Handle<CodeCacheHashTable> table, |
8136 Handle<Name> name, | 8136 Handle<Name> name, |
8137 Handle<Code> code); | 8137 Handle<Code> code); |
8138 | 8138 |
8139 Code* Lookup(Name* name, Code::Flags flags); | 8139 Code* Lookup(Name* name, Code::Flags flags); |
8140 | 8140 |
8141 DECLARE_CAST(CodeCacheHashTable) | 8141 DECLARE_CAST(CodeCacheHashTable) |
8142 | 8142 |
8143 // Initial size of the fixed array backing the hash table. | |
8144 static const int kInitialSize = 16; | |
8145 | |
8146 private: | 8143 private: |
8147 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeCacheHashTable); | 8144 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeCacheHashTable); |
8148 }; | 8145 }; |
8149 | 8146 |
8150 | 8147 |
8151 class TypeFeedbackInfo: public Struct { | 8148 class TypeFeedbackInfo: public Struct { |
8152 public: | 8149 public: |
8153 inline int ic_total_count(); | 8150 inline int ic_total_count(); |
8154 inline void set_ic_total_count(int count); | 8151 inline void set_ic_total_count(int count); |
8155 | 8152 |
(...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10809 } | 10806 } |
10810 return value; | 10807 return value; |
10811 } | 10808 } |
10812 }; | 10809 }; |
10813 | 10810 |
10814 | 10811 |
10815 } // NOLINT, false-positive due to second-order macros. | 10812 } // NOLINT, false-positive due to second-order macros. |
10816 } // NOLINT, false-positive due to second-order macros. | 10813 } // NOLINT, false-positive due to second-order macros. |
10817 | 10814 |
10818 #endif // V8_OBJECTS_H_ | 10815 #endif // V8_OBJECTS_H_ |
OLD | NEW |