| 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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 | 1334 |
| 1335 void ProcessAllWeakReferences(WeakObjectRetainer* retainer); | 1335 void ProcessAllWeakReferences(WeakObjectRetainer* retainer); |
| 1336 void ProcessYoungWeakReferences(WeakObjectRetainer* retainer); | 1336 void ProcessYoungWeakReferences(WeakObjectRetainer* retainer); |
| 1337 | 1337 |
| 1338 void VisitExternalResources(v8::ExternalResourceVisitor* visitor); | 1338 void VisitExternalResources(v8::ExternalResourceVisitor* visitor); |
| 1339 | 1339 |
| 1340 // An object should be promoted if the object has survived a | 1340 // An object should be promoted if the object has survived a |
| 1341 // scavenge operation. | 1341 // scavenge operation. |
| 1342 inline bool ShouldBePromoted(Address old_address, int object_size); | 1342 inline bool ShouldBePromoted(Address old_address, int object_size); |
| 1343 | 1343 |
| 1344 void ClearJSFunctionResultCaches(); | |
| 1345 | |
| 1346 void ClearNormalizedMapCaches(); | 1344 void ClearNormalizedMapCaches(); |
| 1347 | 1345 |
| 1348 GCTracer* tracer() { return &tracer_; } | 1346 GCTracer* tracer() { return &tracer_; } |
| 1349 | 1347 |
| 1350 // Returns the size of objects residing in non new spaces. | 1348 // Returns the size of objects residing in non new spaces. |
| 1351 intptr_t PromotedSpaceSizeOfObjects(); | 1349 intptr_t PromotedSpaceSizeOfObjects(); |
| 1352 | 1350 |
| 1353 double total_regexp_code_generated() { return total_regexp_code_generated_; } | 1351 double total_regexp_code_generated() { return total_regexp_code_generated_; } |
| 1354 void IncreaseTotalRegexpCodeGenerated(int size) { | 1352 void IncreaseTotalRegexpCodeGenerated(int size) { |
| 1355 total_regexp_code_generated_ += size; | 1353 total_regexp_code_generated_ += size; |
| (...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2887 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2885 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2888 | 2886 |
| 2889 private: | 2887 private: |
| 2890 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2888 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2891 }; | 2889 }; |
| 2892 #endif // DEBUG | 2890 #endif // DEBUG |
| 2893 } | 2891 } |
| 2894 } // namespace v8::internal | 2892 } // namespace v8::internal |
| 2895 | 2893 |
| 2896 #endif // V8_HEAP_HEAP_H_ | 2894 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |