OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 return &global_contexts_list_; | 1212 return &global_contexts_list_; |
1213 } | 1213 } |
1214 | 1214 |
1215 #ifdef DEBUG | 1215 #ifdef DEBUG |
1216 void Print(); | 1216 void Print(); |
1217 void PrintHandles(); | 1217 void PrintHandles(); |
1218 | 1218 |
1219 // Verify the heap is in its normal state before or after a GC. | 1219 // Verify the heap is in its normal state before or after a GC. |
1220 void Verify(); | 1220 void Verify(); |
1221 | 1221 |
| 1222 // Verify that AccessorPairs are not shared, i.e. make sure that they have |
| 1223 // exactly one pointer to them. |
| 1224 void VerifyNoAccessorPairSharing(); |
| 1225 |
1222 void OldPointerSpaceCheckStoreBuffer(); | 1226 void OldPointerSpaceCheckStoreBuffer(); |
1223 void MapSpaceCheckStoreBuffer(); | 1227 void MapSpaceCheckStoreBuffer(); |
1224 void LargeObjectSpaceCheckStoreBuffer(); | 1228 void LargeObjectSpaceCheckStoreBuffer(); |
1225 | 1229 |
1226 // Report heap statistics. | 1230 // Report heap statistics. |
1227 void ReportHeapStatistics(const char* title); | 1231 void ReportHeapStatistics(const char* title); |
1228 void ReportCodeStatistics(const char* title); | 1232 void ReportCodeStatistics(const char* title); |
1229 | 1233 |
1230 // Fill in bogus values in from space | 1234 // Fill in bogus values in from space |
1231 void ZapFromSpace(); | 1235 void ZapFromSpace(); |
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2646 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2650 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2647 | 2651 |
2648 private: | 2652 private: |
2649 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2653 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2650 }; | 2654 }; |
2651 #endif // DEBUG || LIVE_OBJECT_LIST | 2655 #endif // DEBUG || LIVE_OBJECT_LIST |
2652 | 2656 |
2653 } } // namespace v8::internal | 2657 } } // namespace v8::internal |
2654 | 2658 |
2655 #endif // V8_HEAP_H_ | 2659 #endif // V8_HEAP_H_ |
OLD | NEW |