| 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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1483 | 1483 |
| 1484 // Write barrier support for address[start : start + len[ = o. | 1484 // Write barrier support for address[start : start + len[ = o. |
| 1485 INLINE(void RecordWrites(Address address, int start, int len)); | 1485 INLINE(void RecordWrites(Address address, int start, int len)); |
| 1486 | 1486 |
| 1487 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; | 1487 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; |
| 1488 inline HeapState gc_state() { return gc_state_; } | 1488 inline HeapState gc_state() { return gc_state_; } |
| 1489 | 1489 |
| 1490 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } | 1490 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } |
| 1491 | 1491 |
| 1492 #ifdef DEBUG | 1492 #ifdef DEBUG |
| 1493 void set_allocation_timeout(int timeout) { |
| 1494 allocation_timeout_ = timeout; |
| 1495 } |
| 1496 |
| 1493 bool disallow_allocation_failure() { | 1497 bool disallow_allocation_failure() { |
| 1494 return disallow_allocation_failure_; | 1498 return disallow_allocation_failure_; |
| 1495 } | 1499 } |
| 1496 | 1500 |
| 1497 void TracePathToObjectFrom(Object* target, Object* root); | 1501 void TracePathToObjectFrom(Object* target, Object* root); |
| 1498 void TracePathToObject(Object* target); | 1502 void TracePathToObject(Object* target); |
| 1499 void TracePathToGlobal(); | 1503 void TracePathToGlobal(); |
| 1500 #endif | 1504 #endif |
| 1501 | 1505 |
| 1502 // Callback function passed to Heap::Iterate etc. Copies an object if | 1506 // Callback function passed to Heap::Iterate etc. Copies an object if |
| (...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3040 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3044 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3041 | 3045 |
| 3042 private: | 3046 private: |
| 3043 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3047 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3044 }; | 3048 }; |
| 3045 #endif // DEBUG | 3049 #endif // DEBUG |
| 3046 | 3050 |
| 3047 } } // namespace v8::internal | 3051 } } // namespace v8::internal |
| 3048 | 3052 |
| 3049 #endif // V8_HEAP_H_ | 3053 #endif // V8_HEAP_H_ |
| OLD | NEW |