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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 | 806 |
807 // TODO(hpayer): There is still a missmatch between capacity and actual | 807 // TODO(hpayer): There is still a missmatch between capacity and actual |
808 // committed memory size. | 808 // committed memory size. |
809 bool CanExpandOldGeneration(int size) { | 809 bool CanExpandOldGeneration(int size) { |
810 return (CommittedOldGenerationMemory() + size) < MaxOldGenerationSize(); | 810 return (CommittedOldGenerationMemory() + size) < MaxOldGenerationSize(); |
811 } | 811 } |
812 | 812 |
813 // Clear the Instanceof cache (used when a prototype changes). | 813 // Clear the Instanceof cache (used when a prototype changes). |
814 inline void ClearInstanceofCache(); | 814 inline void ClearInstanceofCache(); |
815 | 815 |
816 // Iterates the whole code space to clear all keyed store ICs. | |
817 void ClearAllKeyedStoreICs(); | |
818 | |
819 // FreeSpace objects have a null map after deserialization. Update the map. | 816 // FreeSpace objects have a null map after deserialization. Update the map. |
820 void RepairFreeListsAfterDeserialization(); | 817 void RepairFreeListsAfterDeserialization(); |
821 | 818 |
822 // Move len elements within a given array from src_index index to dst_index | 819 // Move len elements within a given array from src_index index to dst_index |
823 // index. | 820 // index. |
824 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); | 821 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); |
825 | 822 |
826 // Initialize a filler object to keep the ability to iterate over the heap | 823 // Initialize a filler object to keep the ability to iterate over the heap |
827 // when introducing gaps within pages. | 824 // when introducing gaps within pages. |
828 void CreateFillerObjectAt(Address addr, int size); | 825 void CreateFillerObjectAt(Address addr, int size); |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2726 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2723 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2727 | 2724 |
2728 private: | 2725 private: |
2729 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2726 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2730 }; | 2727 }; |
2731 #endif // DEBUG | 2728 #endif // DEBUG |
2732 } // namespace internal | 2729 } // namespace internal |
2733 } // namespace v8 | 2730 } // namespace v8 |
2734 | 2731 |
2735 #endif // V8_HEAP_HEAP_H_ | 2732 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |