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 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 } | 1017 } |
1018 | 1018 |
1019 void public_set_store_buffer_top(Address* top) { | 1019 void public_set_store_buffer_top(Address* top) { |
1020 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); | 1020 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); |
1021 } | 1021 } |
1022 | 1022 |
1023 void public_set_materialized_objects(FixedArray* objects) { | 1023 void public_set_materialized_objects(FixedArray* objects) { |
1024 roots_[kMaterializedObjectsRootIndex] = objects; | 1024 roots_[kMaterializedObjectsRootIndex] = objects; |
1025 } | 1025 } |
1026 | 1026 |
1027 void public_set_interpreter_table(FixedArray* table) { | |
1028 roots_[kInterpreterTableRootIndex] = table; | |
1029 } | |
1030 | |
1031 // Generated code can embed this address to get access to the roots. | 1027 // Generated code can embed this address to get access to the roots. |
1032 Object** roots_array_start() { return roots_; } | 1028 Object** roots_array_start() { return roots_; } |
1033 | 1029 |
1034 Address* store_buffer_top_address() { | 1030 Address* store_buffer_top_address() { |
1035 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); | 1031 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); |
1036 } | 1032 } |
1037 | 1033 |
1038 static bool RootIsImmortalImmovable(int root_index); | 1034 static bool RootIsImmortalImmovable(int root_index); |
1039 void CheckHandleCount(); | 1035 void CheckHandleCount(); |
1040 | 1036 |
(...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2784 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2780 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2785 | 2781 |
2786 private: | 2782 private: |
2787 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2783 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2788 }; | 2784 }; |
2789 #endif // DEBUG | 2785 #endif // DEBUG |
2790 } | 2786 } |
2791 } // namespace v8::internal | 2787 } // namespace v8::internal |
2792 | 2788 |
2793 #endif // V8_HEAP_HEAP_H_ | 2789 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |