OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 inline void RecordWrites(Address address, int start, int len); | 1046 inline void RecordWrites(Address address, int start, int len); |
1047 | 1047 |
1048 // Given an address occupied by a live code object, return that object. | 1048 // Given an address occupied by a live code object, return that object. |
1049 Object* FindCodeObject(Address a); | 1049 Object* FindCodeObject(Address a); |
1050 | 1050 |
1051 // Invoke Shrink on shrinkable spaces. | 1051 // Invoke Shrink on shrinkable spaces. |
1052 void Shrink(); | 1052 void Shrink(); |
1053 | 1053 |
1054 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; | 1054 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; |
1055 inline HeapState gc_state() { return gc_state_; } | 1055 inline HeapState gc_state() { return gc_state_; } |
1056 | 1056 |
1057 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } | 1057 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } |
1058 | 1058 |
1059 #ifdef DEBUG | 1059 #ifdef DEBUG |
1060 bool IsAllocationAllowed() { return allocation_allowed_; } | 1060 bool IsAllocationAllowed() { return allocation_allowed_; } |
1061 inline bool allow_allocation(bool enable); | 1061 inline bool allow_allocation(bool enable); |
1062 | 1062 |
1063 bool disallow_allocation_failure() { | 1063 bool disallow_allocation_failure() { |
1064 return disallow_allocation_failure_; | 1064 return disallow_allocation_failure_; |
1065 } | 1065 } |
1066 | 1066 |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2262 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2262 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2263 }; | 2263 }; |
2264 #endif // DEBUG || LIVE_OBJECT_LIST | 2264 #endif // DEBUG || LIVE_OBJECT_LIST |
2265 | 2265 |
2266 | 2266 |
2267 } } // namespace v8::internal | 2267 } } // namespace v8::internal |
2268 | 2268 |
2269 #undef HEAP | 2269 #undef HEAP |
2270 | 2270 |
2271 #endif // V8_HEAP_H_ | 2271 #endif // V8_HEAP_H_ |
OLD | NEW |