| 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_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ | 
| 6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ | 
| 7 | 7 | 
| 8 #include <cmath> | 8 #include <cmath> | 
| 9 #include <map> | 9 #include <map> | 
| 10 | 10 | 
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 94   V(Map, message_object_map, JSMessageObjectMap)                               \ | 94   V(Map, message_object_map, JSMessageObjectMap)                               \ | 
| 95   V(Map, external_map, ExternalMap)                                            \ | 95   V(Map, external_map, ExternalMap)                                            \ | 
| 96   V(Map, bytecode_array_map, BytecodeArrayMap)                                 \ | 96   V(Map, bytecode_array_map, BytecodeArrayMap)                                 \ | 
| 97   V(Map, module_info_map, ModuleInfoMap)                                       \ | 97   V(Map, module_info_map, ModuleInfoMap)                                       \ | 
| 98   V(Map, type_feedback_vector_map, TypeFeedbackVectorMap)                      \ | 98   V(Map, type_feedback_vector_map, TypeFeedbackVectorMap)                      \ | 
| 99   /* String maps */                                                            \ | 99   /* String maps */                                                            \ | 
| 100   V(Map, native_source_string_map, NativeSourceStringMap)                      \ | 100   V(Map, native_source_string_map, NativeSourceStringMap)                      \ | 
| 101   V(Map, string_map, StringMap)                                                \ | 101   V(Map, string_map, StringMap)                                                \ | 
| 102   V(Map, cons_one_byte_string_map, ConsOneByteStringMap)                       \ | 102   V(Map, cons_one_byte_string_map, ConsOneByteStringMap)                       \ | 
| 103   V(Map, cons_string_map, ConsStringMap)                                       \ | 103   V(Map, cons_string_map, ConsStringMap)                                       \ | 
|  | 104   V(Map, thin_one_byte_string_map, ThinOneByteStringMap)                       \ | 
|  | 105   V(Map, thin_string_map, ThinStringMap)                                       \ | 
| 104   V(Map, sliced_string_map, SlicedStringMap)                                   \ | 106   V(Map, sliced_string_map, SlicedStringMap)                                   \ | 
| 105   V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap)                   \ | 107   V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap)                   \ | 
| 106   V(Map, external_string_map, ExternalStringMap)                               \ | 108   V(Map, external_string_map, ExternalStringMap)                               \ | 
| 107   V(Map, external_string_with_one_byte_data_map,                               \ | 109   V(Map, external_string_with_one_byte_data_map,                               \ | 
| 108     ExternalStringWithOneByteDataMap)                                          \ | 110     ExternalStringWithOneByteDataMap)                                          \ | 
| 109   V(Map, external_one_byte_string_map, ExternalOneByteStringMap)               \ | 111   V(Map, external_one_byte_string_map, ExternalOneByteStringMap)               \ | 
| 110   V(Map, short_external_string_map, ShortExternalStringMap)                    \ | 112   V(Map, short_external_string_map, ShortExternalStringMap)                    \ | 
| 111   V(Map, short_external_string_with_one_byte_data_map,                         \ | 113   V(Map, short_external_string_with_one_byte_data_map,                         \ | 
| 112     ShortExternalStringWithOneByteDataMap)                                     \ | 114     ShortExternalStringWithOneByteDataMap)                                     \ | 
| 113   V(Map, internalized_string_map, InternalizedStringMap)                       \ | 115   V(Map, internalized_string_map, InternalizedStringMap)                       \ | 
| (...skipping 2014 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2128   // Allocates a new utility object in the old generation. | 2130   // Allocates a new utility object in the old generation. | 
| 2129   MUST_USE_RESULT AllocationResult AllocateStruct(InstanceType type); | 2131   MUST_USE_RESULT AllocationResult AllocateStruct(InstanceType type); | 
| 2130 | 2132 | 
| 2131   // Allocates a new foreign object. | 2133   // Allocates a new foreign object. | 
| 2132   MUST_USE_RESULT AllocationResult | 2134   MUST_USE_RESULT AllocationResult | 
| 2133       AllocateForeign(Address address, PretenureFlag pretenure = NOT_TENURED); | 2135       AllocateForeign(Address address, PretenureFlag pretenure = NOT_TENURED); | 
| 2134 | 2136 | 
| 2135   MUST_USE_RESULT AllocationResult | 2137   MUST_USE_RESULT AllocationResult | 
| 2136       AllocateCode(int object_size, bool immovable); | 2138       AllocateCode(int object_size, bool immovable); | 
| 2137 | 2139 | 
| 2138   MUST_USE_RESULT AllocationResult InternalizeStringWithKey(HashTableKey* key); |  | 
| 2139 |  | 
| 2140   MUST_USE_RESULT AllocationResult InternalizeString(String* str); |  | 
| 2141 |  | 
| 2142   // =========================================================================== | 2140   // =========================================================================== | 
| 2143 | 2141 | 
| 2144   void set_force_oom(bool value) { force_oom_ = value; } | 2142   void set_force_oom(bool value) { force_oom_ = value; } | 
| 2145 | 2143 | 
| 2146   // The amount of external memory registered through the API. | 2144   // The amount of external memory registered through the API. | 
| 2147   int64_t external_memory_; | 2145   int64_t external_memory_; | 
| 2148 | 2146 | 
| 2149   // The limit when to trigger memory pressure from the API. | 2147   // The limit when to trigger memory pressure from the API. | 
| 2150   int64_t external_memory_limit_; | 2148   int64_t external_memory_limit_; | 
| 2151 | 2149 | 
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2698   friend class LargeObjectSpace; | 2696   friend class LargeObjectSpace; | 
| 2699   friend class NewSpace; | 2697   friend class NewSpace; | 
| 2700   friend class PagedSpace; | 2698   friend class PagedSpace; | 
| 2701   DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2699   DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 
| 2702 }; | 2700 }; | 
| 2703 | 2701 | 
| 2704 }  // namespace internal | 2702 }  // namespace internal | 
| 2705 }  // namespace v8 | 2703 }  // namespace v8 | 
| 2706 | 2704 | 
| 2707 #endif  // V8_HEAP_HEAP_H_ | 2705 #endif  // V8_HEAP_HEAP_H_ | 
| OLD | NEW | 
|---|