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

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

Issue 890613002: Introduce ProcessYoungWeakReferences and process weak list of allocation sites just during full GCs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 1217
1218 return false; 1218 return false;
1219 } 1219 }
1220 1220
1221 void UpdateNewSpaceReferencesInExternalStringTable( 1221 void UpdateNewSpaceReferencesInExternalStringTable(
1222 ExternalStringTableUpdaterCallback updater_func); 1222 ExternalStringTableUpdaterCallback updater_func);
1223 1223
1224 void UpdateReferencesInExternalStringTable( 1224 void UpdateReferencesInExternalStringTable(
1225 ExternalStringTableUpdaterCallback updater_func); 1225 ExternalStringTableUpdaterCallback updater_func);
1226 1226
1227 void ProcessWeakReferences(WeakObjectRetainer* retainer); 1227 void ProcessAllWeakReferences(WeakObjectRetainer* retainer);
1228 void ProcessYoungWeakReferences(WeakObjectRetainer* retainer);
1228 1229
1229 void VisitExternalResources(v8::ExternalResourceVisitor* visitor); 1230 void VisitExternalResources(v8::ExternalResourceVisitor* visitor);
1230 1231
1231 // An object should be promoted if the object has survived a 1232 // An object should be promoted if the object has survived a
1232 // scavenge operation. 1233 // scavenge operation.
1233 inline bool ShouldBePromoted(Address old_address, int object_size); 1234 inline bool ShouldBePromoted(Address old_address, int object_size);
1234 1235
1235 void ClearJSFunctionResultCaches(); 1236 void ClearJSFunctionResultCaches();
1236 1237
1237 void ClearNormalizedMapCaches(); 1238 void ClearNormalizedMapCaches();
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
2584 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2585 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2585 2586
2586 private: 2587 private:
2587 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2588 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2588 }; 2589 };
2589 #endif // DEBUG 2590 #endif // DEBUG
2590 } 2591 }
2591 } // namespace v8::internal 2592 } // namespace v8::internal
2592 2593
2593 #endif // V8_HEAP_HEAP_H_ 2594 #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