OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } | 1278 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } |
1279 | 1279 |
1280 #ifdef DEBUG | 1280 #ifdef DEBUG |
1281 bool IsAllocationAllowed() { return allocation_allowed_; } | 1281 bool IsAllocationAllowed() { return allocation_allowed_; } |
1282 inline bool allow_allocation(bool enable); | 1282 inline bool allow_allocation(bool enable); |
1283 | 1283 |
1284 bool disallow_allocation_failure() { | 1284 bool disallow_allocation_failure() { |
1285 return disallow_allocation_failure_; | 1285 return disallow_allocation_failure_; |
1286 } | 1286 } |
1287 | 1287 |
| 1288 void TracePathToObjectFrom(Object* target, Object* root); |
1288 void TracePathToObject(Object* target); | 1289 void TracePathToObject(Object* target); |
1289 void TracePathToGlobal(); | 1290 void TracePathToGlobal(); |
1290 #endif | 1291 #endif |
1291 | 1292 |
1292 // Callback function passed to Heap::Iterate etc. Copies an object if | 1293 // Callback function passed to Heap::Iterate etc. Copies an object if |
1293 // necessary, the object might be promoted to an old space. The caller must | 1294 // necessary, the object might be promoted to an old space. The caller must |
1294 // ensure the precondition that the object is (a) a heap object and (b) in | 1295 // ensure the precondition that the object is (a) a heap object and (b) in |
1295 // the heap's from space. | 1296 // the heap's from space. |
1296 static inline void ScavengePointer(HeapObject** p); | 1297 static inline void ScavengePointer(HeapObject** p); |
1297 static inline void ScavengeObject(HeapObject** p, HeapObject* object); | 1298 static inline void ScavengeObject(HeapObject** p, HeapObject* object); |
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2758 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2759 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2759 | 2760 |
2760 private: | 2761 private: |
2761 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2762 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2762 }; | 2763 }; |
2763 #endif // DEBUG || LIVE_OBJECT_LIST | 2764 #endif // DEBUG || LIVE_OBJECT_LIST |
2764 | 2765 |
2765 } } // namespace v8::internal | 2766 } } // namespace v8::internal |
2766 | 2767 |
2767 #endif // V8_HEAP_H_ | 2768 #endif // V8_HEAP_H_ |
OLD | NEW |