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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 } | 976 } |
977 | 977 |
978 // Generated code can embed this address to get access to the roots. | 978 // Generated code can embed this address to get access to the roots. |
979 Object** roots_array_start() { return roots_; } | 979 Object** roots_array_start() { return roots_; } |
980 | 980 |
981 Address* store_buffer_top_address() { | 981 Address* store_buffer_top_address() { |
982 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); | 982 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); |
983 } | 983 } |
984 | 984 |
985 static bool RootIsImmortalImmovable(int root_index); | 985 static bool RootIsImmortalImmovable(int root_index); |
| 986 void CheckHandleCount(); |
986 | 987 |
987 #ifdef VERIFY_HEAP | 988 #ifdef VERIFY_HEAP |
988 // Verify the heap is in its normal state before or after a GC. | 989 // Verify the heap is in its normal state before or after a GC. |
989 void Verify(); | 990 void Verify(); |
990 #endif | 991 #endif |
991 | 992 |
992 #ifdef DEBUG | 993 #ifdef DEBUG |
993 void Print(); | 994 void Print(); |
994 void PrintHandles(); | 995 void PrintHandles(); |
995 | 996 |
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2627 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2628 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2628 | 2629 |
2629 private: | 2630 private: |
2630 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2631 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2631 }; | 2632 }; |
2632 #endif // DEBUG | 2633 #endif // DEBUG |
2633 } | 2634 } |
2634 } // namespace v8::internal | 2635 } // namespace v8::internal |
2635 | 2636 |
2636 #endif // V8_HEAP_HEAP_H_ | 2637 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |