| 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 3652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3663 | 3663 |
| 3664 // Update the head of the native contexts list in the heap. | 3664 // Update the head of the native contexts list in the heap. |
| 3665 updating_visitor.VisitPointer(heap_->native_contexts_list_address()); | 3665 updating_visitor.VisitPointer(heap_->native_contexts_list_address()); |
| 3666 | 3666 |
| 3667 heap_->string_table()->Iterate(&updating_visitor); | 3667 heap_->string_table()->Iterate(&updating_visitor); |
| 3668 updating_visitor.VisitPointer(heap_->weak_object_to_code_table_address()); | 3668 updating_visitor.VisitPointer(heap_->weak_object_to_code_table_address()); |
| 3669 if (heap_->weak_object_to_code_table()->IsHashTable()) { | 3669 if (heap_->weak_object_to_code_table()->IsHashTable()) { |
| 3670 WeakHashTable* table = | 3670 WeakHashTable* table = |
| 3671 WeakHashTable::cast(heap_->weak_object_to_code_table()); | 3671 WeakHashTable::cast(heap_->weak_object_to_code_table()); |
| 3672 table->Iterate(&updating_visitor); | 3672 table->Iterate(&updating_visitor); |
| 3673 table->Rehash(heap_->undefined_value()); | 3673 table->Rehash(heap_->isolate()->factory()->undefined_value()); |
| 3674 } | 3674 } |
| 3675 | 3675 |
| 3676 // Update pointers from external string table. | 3676 // Update pointers from external string table. |
| 3677 heap_->UpdateReferencesInExternalStringTable( | 3677 heap_->UpdateReferencesInExternalStringTable( |
| 3678 &UpdateReferenceInExternalStringTableEntry); | 3678 &UpdateReferenceInExternalStringTableEntry); |
| 3679 | 3679 |
| 3680 EvacuationWeakObjectRetainer evacuation_object_retainer; | 3680 EvacuationWeakObjectRetainer evacuation_object_retainer; |
| 3681 heap()->ProcessWeakReferences(&evacuation_object_retainer); | 3681 heap()->ProcessWeakReferences(&evacuation_object_retainer); |
| 3682 | 3682 |
| 3683 // Visit invalidated code (we ignored all slots on it) and clear mark-bits | 3683 // Visit invalidated code (we ignored all slots on it) and clear mark-bits |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4578 while (buffer != NULL) { | 4578 while (buffer != NULL) { |
| 4579 SlotsBuffer* next_buffer = buffer->next(); | 4579 SlotsBuffer* next_buffer = buffer->next(); |
| 4580 DeallocateBuffer(buffer); | 4580 DeallocateBuffer(buffer); |
| 4581 buffer = next_buffer; | 4581 buffer = next_buffer; |
| 4582 } | 4582 } |
| 4583 *buffer_address = NULL; | 4583 *buffer_address = NULL; |
| 4584 } | 4584 } |
| 4585 | 4585 |
| 4586 | 4586 |
| 4587 } } // namespace v8::internal | 4587 } } // namespace v8::internal |
| OLD | NEW |