Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: src/heap/heap.h

Issue 1314433004: Vector ICs: Stop iterating the heap to clear keyed store ics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code review. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698