| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 HeapObject* object = HeapObject::cast(*current); | 86 HeapObject* object = HeapObject::cast(*current); |
| 87 CHECK(heap_->mark_compact_collector()->IsMarked(object)); | 87 CHECK(heap_->mark_compact_collector()->IsMarked(object)); |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 | 91 |
| 92 void VisitEmbeddedPointer(RelocInfo* rinfo) { | 92 void VisitEmbeddedPointer(RelocInfo* rinfo) { |
| 93 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); | 93 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); |
| 94 if (!Code::IsWeakEmbeddedObject(rinfo->host()->kind(), | 94 if (!Code::IsWeakEmbeddedObject(rinfo->host()->kind(), |
| 95 rinfo->target_object())) { | 95 rinfo->target_object())) { |
| 96 VisitPointer(rinfo->target_object_address()); | 96 Object* p = rinfo->target_object(); |
| 97 VisitPointer(&p); |
| 97 } | 98 } |
| 98 } | 99 } |
| 99 | 100 |
| 100 private: | 101 private: |
| 101 Heap* heap_; | 102 Heap* heap_; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 | 105 |
| 105 static void VerifyMarking(Heap* heap, Address bottom, Address top) { | 106 static void VerifyMarking(Heap* heap, Address bottom, Address top) { |
| 106 VerifyMarkingVisitor visitor(heap); | 107 VerifyMarkingVisitor visitor(heap); |
| (...skipping 4245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4352 while (buffer != NULL) { | 4353 while (buffer != NULL) { |
| 4353 SlotsBuffer* next_buffer = buffer->next(); | 4354 SlotsBuffer* next_buffer = buffer->next(); |
| 4354 DeallocateBuffer(buffer); | 4355 DeallocateBuffer(buffer); |
| 4355 buffer = next_buffer; | 4356 buffer = next_buffer; |
| 4356 } | 4357 } |
| 4357 *buffer_address = NULL; | 4358 *buffer_address = NULL; |
| 4358 } | 4359 } |
| 4359 | 4360 |
| 4360 | 4361 |
| 4361 } } // namespace v8::internal | 4362 } } // namespace v8::internal |
| OLD | NEW |