| 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 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1805 | 1805 |
| 1806 inline bool OldGenerationAllocationLimitReached(); | 1806 inline bool OldGenerationAllocationLimitReached(); |
| 1807 | 1807 |
| 1808 inline void DoScavengeObject(Map* map, HeapObject** slot, HeapObject* obj) { | 1808 inline void DoScavengeObject(Map* map, HeapObject** slot, HeapObject* obj) { |
| 1809 scavenging_visitors_table_.GetVisitor(map)(map, slot, obj); | 1809 scavenging_visitors_table_.GetVisitor(map)(map, slot, obj); |
| 1810 } | 1810 } |
| 1811 | 1811 |
| 1812 void QueueMemoryChunkForFree(MemoryChunk* chunk); | 1812 void QueueMemoryChunkForFree(MemoryChunk* chunk); |
| 1813 void FreeQueuedChunks(); | 1813 void FreeQueuedChunks(); |
| 1814 | 1814 |
| 1815 int gc_count() const { return gc_count_; } |
| 1816 |
| 1815 // Completely clear the Instanceof cache (to stop it keeping objects alive | 1817 // Completely clear the Instanceof cache (to stop it keeping objects alive |
| 1816 // around a GC). | 1818 // around a GC). |
| 1817 inline void CompletelyClearInstanceofCache(); | 1819 inline void CompletelyClearInstanceofCache(); |
| 1818 | 1820 |
| 1819 // The roots that have an index less than this are always in old space. | 1821 // The roots that have an index less than this are always in old space. |
| 1820 static const int kOldSpaceRoots = 0x20; | 1822 static const int kOldSpaceRoots = 0x20; |
| 1821 | 1823 |
| 1822 uint32_t HashSeed() { | 1824 uint32_t HashSeed() { |
| 1823 uint32_t seed = static_cast<uint32_t>(hash_seed()->value()); | 1825 uint32_t seed = static_cast<uint32_t>(hash_seed()->value()); |
| 1824 ASSERT(FLAG_randomize_hashes || seed == 0); | 1826 ASSERT(FLAG_randomize_hashes || seed == 0); |
| (...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3078 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3080 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3079 | 3081 |
| 3080 private: | 3082 private: |
| 3081 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3083 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3082 }; | 3084 }; |
| 3083 #endif // DEBUG | 3085 #endif // DEBUG |
| 3084 | 3086 |
| 3085 } } // namespace v8::internal | 3087 } } // namespace v8::internal |
| 3086 | 3088 |
| 3087 #endif // V8_HEAP_H_ | 3089 #endif // V8_HEAP_H_ |
| OLD | NEW |