| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 | 400 |
| 401 // Rebuild remembered set in old and map spaces. | 401 // Rebuild remembered set in old and map spaces. |
| 402 static void RebuildRSets(); | 402 static void RebuildRSets(); |
| 403 | 403 |
| 404 #ifdef DEBUG | 404 #ifdef DEBUG |
| 405 // ----------------------------------------------------------------------- | 405 // ----------------------------------------------------------------------- |
| 406 // Debugging variables, functions and classes | 406 // Debugging variables, functions and classes |
| 407 // Counters used for debugging the marking phase of mark-compact or | 407 // Counters used for debugging the marking phase of mark-compact or |
| 408 // mark-sweep collection. | 408 // mark-sweep collection. |
| 409 | 409 |
| 410 // Number of live objects in Heap::to_space_. | 410 // Size of live objects in Heap::to_space_. |
| 411 static int live_young_objects_; | 411 static int live_young_objects_size_; |
| 412 | 412 |
| 413 // Number of live objects in Heap::old_pointer_space_. | 413 // Size of live objects in Heap::old_pointer_space_. |
| 414 static int live_old_pointer_objects_; | 414 static int live_old_pointer_objects_size_; |
| 415 | 415 |
| 416 // Number of live objects in Heap::old_data_space_. | 416 // Size of live objects in Heap::old_data_space_. |
| 417 static int live_old_data_objects_; | 417 static int live_old_data_objects_size_; |
| 418 | 418 |
| 419 // Number of live objects in Heap::code_space_. | 419 // Size of live objects in Heap::code_space_. |
| 420 static int live_code_objects_; | 420 static int live_code_objects_size_; |
| 421 | 421 |
| 422 // Number of live objects in Heap::map_space_. | 422 // Size of live objects in Heap::map_space_. |
| 423 static int live_map_objects_; | 423 static int live_map_objects_size_; |
| 424 | 424 |
| 425 // Number of live objects in Heap::cell_space_. | 425 // Size of live objects in Heap::cell_space_. |
| 426 static int live_cell_objects_; | 426 static int live_cell_objects_size_; |
| 427 | 427 |
| 428 // Number of live objects in Heap::lo_space_. | 428 // Size of live objects in Heap::lo_space_. |
| 429 static int live_lo_objects_; | 429 static int live_lo_objects_size_; |
| 430 | 430 |
| 431 // Number of live bytes in this collection. | 431 // Number of live bytes in this collection. |
| 432 static int live_bytes_; | 432 static int live_bytes_; |
| 433 | 433 |
| 434 friend class MarkObjectVisitor; | 434 friend class MarkObjectVisitor; |
| 435 static void VisitObject(HeapObject* obj); | 435 static void VisitObject(HeapObject* obj); |
| 436 | 436 |
| 437 friend class UnmarkObjectVisitor; | 437 friend class UnmarkObjectVisitor; |
| 438 static void UnmarkObject(HeapObject* obj); | 438 static void UnmarkObject(HeapObject* obj); |
| 439 #endif | 439 #endif |
| 440 }; | 440 }; |
| 441 | 441 |
| 442 | 442 |
| 443 } } // namespace v8::internal | 443 } } // namespace v8::internal |
| 444 | 444 |
| 445 #endif // V8_MARK_COMPACT_H_ | 445 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |