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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 | 997 |
998 void SetRootNoScriptSharedFunctionInfos(Object* value) { | 998 void SetRootNoScriptSharedFunctionInfos(Object* value) { |
999 roots_[kNoScriptSharedFunctionInfosRootIndex] = value; | 999 roots_[kNoScriptSharedFunctionInfosRootIndex] = value; |
1000 } | 1000 } |
1001 | 1001 |
1002 // Set the stack limit in the roots_ array. Some architectures generate | 1002 // Set the stack limit in the roots_ array. Some architectures generate |
1003 // code that looks here, because it is faster than loading from the static | 1003 // code that looks here, because it is faster than loading from the static |
1004 // jslimit_/real_jslimit_ variable in the StackGuard. | 1004 // jslimit_/real_jslimit_ variable in the StackGuard. |
1005 void SetStackLimits(); | 1005 void SetStackLimits(); |
1006 | 1006 |
| 1007 // The stack limit is thread-dependent. To be able to reproduce the same |
| 1008 // snapshot blob, we need to reset it before serializing. |
| 1009 void ClearStackLimits(); |
| 1010 |
1007 // Generated code can treat direct references to this root as constant. | 1011 // Generated code can treat direct references to this root as constant. |
1008 bool RootCanBeTreatedAsConstant(RootListIndex root_index); | 1012 bool RootCanBeTreatedAsConstant(RootListIndex root_index); |
1009 | 1013 |
1010 Map* MapForFixedTypedArray(ExternalArrayType array_type); | 1014 Map* MapForFixedTypedArray(ExternalArrayType array_type); |
1011 RootListIndex RootIndexForFixedTypedArray(ExternalArrayType array_type); | 1015 RootListIndex RootIndexForFixedTypedArray(ExternalArrayType array_type); |
1012 | 1016 |
1013 RootListIndex RootIndexForEmptyFixedTypedArray(ElementsKind kind); | 1017 RootListIndex RootIndexForEmptyFixedTypedArray(ElementsKind kind); |
1014 FixedTypedArrayBase* EmptyFixedTypedArrayForMap(Map* map); | 1018 FixedTypedArrayBase* EmptyFixedTypedArrayForMap(Map* map); |
1015 | 1019 |
1016 void RegisterStrongRoots(Object** start, Object** end); | 1020 void RegisterStrongRoots(Object** start, Object** end); |
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2659 friend class LargeObjectSpace; | 2663 friend class LargeObjectSpace; |
2660 friend class NewSpace; | 2664 friend class NewSpace; |
2661 friend class PagedSpace; | 2665 friend class PagedSpace; |
2662 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2666 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2663 }; | 2667 }; |
2664 | 2668 |
2665 } // namespace internal | 2669 } // namespace internal |
2666 } // namespace v8 | 2670 } // namespace v8 |
2667 | 2671 |
2668 #endif // V8_HEAP_HEAP_H_ | 2672 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |