| 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 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 } | 980 } |
| 981 | 981 |
| 982 // Generated code can embed this address to get access to the roots. | 982 // Generated code can embed this address to get access to the roots. |
| 983 Object** roots_array_start() { return roots_; } | 983 Object** roots_array_start() { return roots_; } |
| 984 | 984 |
| 985 Address* store_buffer_top_address() { | 985 Address* store_buffer_top_address() { |
| 986 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); | 986 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); |
| 987 } | 987 } |
| 988 | 988 |
| 989 static bool RootIsImmortalImmovable(int root_index); | 989 static bool RootIsImmortalImmovable(int root_index); |
| 990 void CheckHandleCount(); |
| 990 | 991 |
| 991 #ifdef VERIFY_HEAP | 992 #ifdef VERIFY_HEAP |
| 992 // Verify the heap is in its normal state before or after a GC. | 993 // Verify the heap is in its normal state before or after a GC. |
| 993 void Verify(); | 994 void Verify(); |
| 994 #endif | 995 #endif |
| 995 | 996 |
| 996 #ifdef DEBUG | 997 #ifdef DEBUG |
| 997 void Print(); | 998 void Print(); |
| 998 void PrintHandles(); | 999 void PrintHandles(); |
| 999 | 1000 |
| (...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2640 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2641 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2641 | 2642 |
| 2642 private: | 2643 private: |
| 2643 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2644 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2644 }; | 2645 }; |
| 2645 #endif // DEBUG | 2646 #endif // DEBUG |
| 2646 } | 2647 } |
| 2647 } // namespace v8::internal | 2648 } // namespace v8::internal |
| 2648 | 2649 |
| 2649 #endif // V8_HEAP_HEAP_H_ | 2650 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |