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_H_ | 5 #ifndef V8_HEAP_H_ |
6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "allocation.h" | 10 #include "allocation.h" |
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1655 heap_->relocation_mutex_.Unlock(); | 1655 heap_->relocation_mutex_.Unlock(); |
1656 } | 1656 } |
1657 | 1657 |
1658 private: | 1658 private: |
1659 Heap* heap_; | 1659 Heap* heap_; |
1660 }; | 1660 }; |
1661 | 1661 |
1662 void AddWeakObjectToCodeDependency(Handle<Object> obj, | 1662 void AddWeakObjectToCodeDependency(Handle<Object> obj, |
1663 Handle<DependentCode> dep); | 1663 Handle<DependentCode> dep); |
1664 | 1664 |
1665 DependentCode* LookupWeakObjectToCodeDependency(Object* obj); | 1665 DependentCode* LookupWeakObjectToCodeDependency(Handle<Object> obj); |
1666 | 1666 |
1667 void InitializeWeakObjectToCodeTable() { | 1667 void InitializeWeakObjectToCodeTable() { |
1668 set_weak_object_to_code_table(undefined_value()); | 1668 set_weak_object_to_code_table(undefined_value()); |
1669 } | 1669 } |
1670 | 1670 |
1671 void EnsureWeakObjectToCodeTable(); | 1671 void EnsureWeakObjectToCodeTable(); |
1672 | 1672 |
1673 static void FatalProcessOutOfMemory(const char* location, | 1673 static void FatalProcessOutOfMemory(const char* location, |
1674 bool take_snapshot = false); | 1674 bool take_snapshot = false); |
1675 | 1675 |
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2858 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2858 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2859 | 2859 |
2860 private: | 2860 private: |
2861 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2861 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2862 }; | 2862 }; |
2863 #endif // DEBUG | 2863 #endif // DEBUG |
2864 | 2864 |
2865 } } // namespace v8::internal | 2865 } } // namespace v8::internal |
2866 | 2866 |
2867 #endif // V8_HEAP_H_ | 2867 #endif // V8_HEAP_H_ |
OLD | NEW |