OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 static inline bool allow_allocation(bool enable); | 727 static inline bool allow_allocation(bool enable); |
728 | 728 |
729 static bool disallow_allocation_failure() { | 729 static bool disallow_allocation_failure() { |
730 return disallow_allocation_failure_; | 730 return disallow_allocation_failure_; |
731 } | 731 } |
732 | 732 |
733 static void TracePathToObject(); | 733 static void TracePathToObject(); |
734 static void TracePathToGlobal(); | 734 static void TracePathToGlobal(); |
735 #endif | 735 #endif |
736 | 736 |
737 // Callback function pased to Heap::Iterate etc. Copies an object if | 737 // Callback function passed to Heap::Iterate etc. Copies an object if |
738 // necessary, the object might be promoted to an old space. The caller must | 738 // necessary, the object might be promoted to an old space. The caller must |
739 // ensure the precondition that the object is (a) a heap object and (b) in | 739 // ensure the precondition that the object is (a) a heap object and (b) in |
740 // the heap's from space. | 740 // the heap's from space. |
741 static void ScavengePointer(HeapObject** p); | 741 static void ScavengePointer(HeapObject** p); |
742 static inline void ScavengeObject(HeapObject** p, HeapObject* object); | 742 static inline void ScavengeObject(HeapObject** p, HeapObject* object); |
743 | 743 |
744 // Clear a range of remembered set addresses corresponding to the object | 744 // Clear a range of remembered set addresses corresponding to the object |
745 // area address 'start' with size 'size_in_bytes', eg, when adding blocks | 745 // area address 'start' with size 'size_in_bytes', eg, when adding blocks |
746 // to the free list. | 746 // to the free list. |
747 static void ClearRSetRange(Address start, int size_in_bytes); | 747 static void ClearRSetRange(Address start, int size_in_bytes); |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 int marked_count_; | 1286 int marked_count_; |
1287 | 1287 |
1288 // The count from the end of the previous full GC. Will be zero if there | 1288 // The count from the end of the previous full GC. Will be zero if there |
1289 // was no previous full GC. | 1289 // was no previous full GC. |
1290 int previous_marked_count_; | 1290 int previous_marked_count_; |
1291 }; | 1291 }; |
1292 | 1292 |
1293 } } // namespace v8::internal | 1293 } } // namespace v8::internal |
1294 | 1294 |
1295 #endif // V8_HEAP_H_ | 1295 #endif // V8_HEAP_H_ |
OLD | NEW |