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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 HeapObject* object, | 400 HeapObject* object, |
401 int object_size); | 401 int object_size); |
402 | 402 |
403 // Type of functions to encode the forwarding address for an object. | 403 // Type of functions to encode the forwarding address for an object. |
404 // Given the object, its size, and the new (non-failure) object it will be | 404 // Given the object, its size, and the new (non-failure) object it will be |
405 // forwarded to, encode the forwarding address. For paged spaces, the | 405 // forwarded to, encode the forwarding address. For paged spaces, the |
406 // 'offset' input/output parameter contains the offset of the forwarded | 406 // 'offset' input/output parameter contains the offset of the forwarded |
407 // object from the forwarding address of the previous live object in the | 407 // object from the forwarding address of the previous live object in the |
408 // page as input, and is updated to contain the offset to be used for the | 408 // page as input, and is updated to contain the offset to be used for the |
409 // next live object in the same page. For spaces using a different | 409 // next live object in the same page. For spaces using a different |
410 // encoding (ie, contiguous spaces), the offset parameter is ignored. | 410 // encoding (i.e., contiguous spaces), the offset parameter is ignored. |
411 typedef void (*EncodingFunction)(Heap* heap, | 411 typedef void (*EncodingFunction)(Heap* heap, |
412 HeapObject* old_object, | 412 HeapObject* old_object, |
413 int object_size, | 413 int object_size, |
414 Object* new_object, | 414 Object* new_object, |
415 int* offset); | 415 int* offset); |
416 | 416 |
417 // Type of functions to process non-live objects. | 417 // Type of functions to process non-live objects. |
418 typedef void (*ProcessNonLiveFunction)(HeapObject* object, Isolate* isolate); | 418 typedef void (*ProcessNonLiveFunction)(HeapObject* object, Isolate* isolate); |
419 | 419 |
420 // Pointer to member function, used in IterateLiveObjects. | 420 // Pointer to member function, used in IterateLiveObjects. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 | 745 |
746 friend class Heap; | 746 friend class Heap; |
747 }; | 747 }; |
748 | 748 |
749 | 749 |
750 const char* AllocationSpaceName(AllocationSpace space); | 750 const char* AllocationSpaceName(AllocationSpace space); |
751 | 751 |
752 } } // namespace v8::internal | 752 } } // namespace v8::internal |
753 | 753 |
754 #endif // V8_MARK_COMPACT_H_ | 754 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |