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 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 // As VerifyPointersVisitor but also checks that remembered set bits are | 1056 // As VerifyPointersVisitor but also checks that remembered set bits are |
1057 // always set for pointers into new space. | 1057 // always set for pointers into new space. |
1058 class VerifyPointersAndRSetVisitor: public ObjectVisitor { | 1058 class VerifyPointersAndRSetVisitor: public ObjectVisitor { |
1059 public: | 1059 public: |
1060 void VisitPointers(Object** start, Object** end) { | 1060 void VisitPointers(Object** start, Object** end) { |
1061 for (Object** current = start; current < end; current++) { | 1061 for (Object** current = start; current < end; current++) { |
1062 if ((*current)->IsHeapObject()) { | 1062 if ((*current)->IsHeapObject()) { |
1063 HeapObject* object = HeapObject::cast(*current); | 1063 HeapObject* object = HeapObject::cast(*current); |
1064 ASSERT(Heap::Contains(object)); | 1064 ASSERT(Heap::Contains(object)); |
1065 ASSERT(object->map()->IsMap()); | 1065 ASSERT(object->map()->IsMap()); |
| 1066 #ifndef V8_TARGET_ARCH_X64 |
1066 if (Heap::InNewSpace(object)) { | 1067 if (Heap::InNewSpace(object)) { |
1067 ASSERT(Page::IsRSetSet(reinterpret_cast<Address>(current), 0)); | 1068 ASSERT(Page::IsRSetSet(reinterpret_cast<Address>(current), 0)); |
1068 } | 1069 } |
| 1070 #endif |
1069 } | 1071 } |
1070 } | 1072 } |
1071 } | 1073 } |
1072 }; | 1074 }; |
1073 #endif | 1075 #endif |
1074 | 1076 |
1075 | 1077 |
1076 // Space iterator for iterating over all spaces of the heap. | 1078 // Space iterator for iterating over all spaces of the heap. |
1077 // Returns each space in turn, and null when it is done. | 1079 // Returns each space in turn, and null when it is done. |
1078 class AllSpaces BASE_EMBEDDED { | 1080 class AllSpaces BASE_EMBEDDED { |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 int marked_count_; | 1403 int marked_count_; |
1402 | 1404 |
1403 // The count from the end of the previous full GC. Will be zero if there | 1405 // The count from the end of the previous full GC. Will be zero if there |
1404 // was no previous full GC. | 1406 // was no previous full GC. |
1405 int previous_marked_count_; | 1407 int previous_marked_count_; |
1406 }; | 1408 }; |
1407 | 1409 |
1408 } } // namespace v8::internal | 1410 } } // namespace v8::internal |
1409 | 1411 |
1410 #endif // V8_HEAP_H_ | 1412 #endif // V8_HEAP_H_ |
OLD | NEW |