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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 | 846 |
847 // TODO(hpayer): There is still a missmatch between capacity and actual | 847 // TODO(hpayer): There is still a missmatch between capacity and actual |
848 // committed memory size. | 848 // committed memory size. |
849 bool CanExpandOldGeneration(int size) { | 849 bool CanExpandOldGeneration(int size) { |
850 return (CommittedOldGenerationMemory() + size) < MaxOldGenerationSize(); | 850 return (CommittedOldGenerationMemory() + size) < MaxOldGenerationSize(); |
851 } | 851 } |
852 | 852 |
853 // Clear the Instanceof cache (used when a prototype changes). | 853 // Clear the Instanceof cache (used when a prototype changes). |
854 inline void ClearInstanceofCache(); | 854 inline void ClearInstanceofCache(); |
855 | 855 |
856 // Iterates the whole code space to clear all ICs of the given kind. | 856 // Iterates the whole code space to clear all keyed store ICs. |
857 void ClearAllICsByKind(Code::Kind kind); | 857 void ClearAllKeyedStoreICs(); |
858 | 858 |
859 // FreeSpace objects have a null map after deserialization. Update the map. | 859 // FreeSpace objects have a null map after deserialization. Update the map. |
860 void RepairFreeListsAfterDeserialization(); | 860 void RepairFreeListsAfterDeserialization(); |
861 | 861 |
862 // Move len elements within a given array from src_index index to dst_index | 862 // Move len elements within a given array from src_index index to dst_index |
863 // index. | 863 // index. |
864 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); | 864 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); |
865 | 865 |
866 // Finalizes an external string by deleting the associated external | 866 // Finalizes an external string by deleting the associated external |
867 // data and clearing the resource pointer. | 867 // data and clearing the resource pointer. |
(...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2763 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2763 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2764 | 2764 |
2765 private: | 2765 private: |
2766 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2766 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2767 }; | 2767 }; |
2768 #endif // DEBUG | 2768 #endif // DEBUG |
2769 } | 2769 } |
2770 } // namespace v8::internal | 2770 } // namespace v8::internal |
2771 | 2771 |
2772 #endif // V8_HEAP_HEAP_H_ | 2772 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |