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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |