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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 | 645 |
646 // Trim the given array from the left. Note that this relocates the object | 646 // Trim the given array from the left. Note that this relocates the object |
647 // start and hence is only valid if there is only a single reference to it. | 647 // start and hence is only valid if there is only a single reference to it. |
648 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); | 648 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); |
649 | 649 |
650 // Trim the given array from the right. | 650 // Trim the given array from the right. |
651 template<Heap::InvocationMode mode> | 651 template<Heap::InvocationMode mode> |
652 void RightTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); | 652 void RightTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); |
653 | 653 |
654 // Converts the given boolean condition to JavaScript boolean value. | 654 // Converts the given boolean condition to JavaScript boolean value. |
655 inline Object* ToBoolean(bool condition); | 655 inline Oddball* ToBoolean(bool condition); |
656 | 656 |
657 // Check whether the heap is currently iterable. | 657 // Check whether the heap is currently iterable. |
658 bool IsHeapIterable(); | 658 bool IsHeapIterable(); |
659 | 659 |
660 // Notify the heap that a context has been disposed. | 660 // Notify the heap that a context has been disposed. |
661 int NotifyContextDisposed(bool dependant_context); | 661 int NotifyContextDisposed(bool dependant_context); |
662 | 662 |
663 void set_native_contexts_list(Object* object) { | 663 void set_native_contexts_list(Object* object) { |
664 native_contexts_list_ = object; | 664 native_contexts_list_ = object; |
665 } | 665 } |
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 friend class LargeObjectSpace; | 2624 friend class LargeObjectSpace; |
2625 friend class NewSpace; | 2625 friend class NewSpace; |
2626 friend class PagedSpace; | 2626 friend class PagedSpace; |
2627 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2627 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2628 }; | 2628 }; |
2629 | 2629 |
2630 } // namespace internal | 2630 } // namespace internal |
2631 } // namespace v8 | 2631 } // namespace v8 |
2632 | 2632 |
2633 #endif // V8_HEAP_HEAP_H_ | 2633 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |