| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 DCHECK(isolate_->handle_scope_implementer()->blocks()->is_empty()); | 664 DCHECK(isolate_->handle_scope_implementer()->blocks()->is_empty()); |
| 665 isolate_->heap()->IterateSmiRoots(this); | 665 isolate_->heap()->IterateSmiRoots(this); |
| 666 isolate_->heap()->IterateStrongRoots(this, VISIT_ONLY_STRONG); | 666 isolate_->heap()->IterateStrongRoots(this, VISIT_ONLY_STRONG); |
| 667 isolate_->heap()->RepairFreeListsAfterDeserialization(); | 667 isolate_->heap()->RepairFreeListsAfterDeserialization(); |
| 668 isolate_->heap()->IterateWeakRoots(this, VISIT_ALL); | 668 isolate_->heap()->IterateWeakRoots(this, VISIT_ALL); |
| 669 | 669 |
| 670 isolate_->heap()->set_native_contexts_list( | 670 isolate_->heap()->set_native_contexts_list( |
| 671 isolate_->heap()->undefined_value()); | 671 isolate_->heap()->undefined_value()); |
| 672 isolate_->heap()->set_array_buffers_list( | 672 isolate_->heap()->set_array_buffers_list( |
| 673 isolate_->heap()->undefined_value()); | 673 isolate_->heap()->undefined_value()); |
| 674 isolate->heap()->set_new_array_buffers_view_list( |
| 675 isolate_->heap()->undefined_value()); |
| 674 | 676 |
| 675 // The allocation site list is build during root iteration, but if no sites | 677 // The allocation site list is build during root iteration, but if no sites |
| 676 // were encountered then it needs to be initialized to undefined. | 678 // were encountered then it needs to be initialized to undefined. |
| 677 if (isolate_->heap()->allocation_sites_list() == Smi::FromInt(0)) { | 679 if (isolate_->heap()->allocation_sites_list() == Smi::FromInt(0)) { |
| 678 isolate_->heap()->set_allocation_sites_list( | 680 isolate_->heap()->set_allocation_sites_list( |
| 679 isolate_->heap()->undefined_value()); | 681 isolate_->heap()->undefined_value()); |
| 680 } | 682 } |
| 681 | 683 |
| 682 isolate_->heap()->InitializeWeakObjectToCodeTable(); | 684 isolate_->heap()->InitializeWeakObjectToCodeTable(); |
| 683 | 685 |
| (...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2565 return GetHeaderValue(kNumInternalizedStringsOffset); | 2567 return GetHeaderValue(kNumInternalizedStringsOffset); |
| 2566 } | 2568 } |
| 2567 | 2569 |
| 2568 Vector<const uint32_t> SerializedCodeData::CodeStubKeys() const { | 2570 Vector<const uint32_t> SerializedCodeData::CodeStubKeys() const { |
| 2569 int reservations_size = GetHeaderValue(kReservationsOffset) * kInt32Size; | 2571 int reservations_size = GetHeaderValue(kReservationsOffset) * kInt32Size; |
| 2570 const byte* start = data_ + kHeaderSize + reservations_size; | 2572 const byte* start = data_ + kHeaderSize + reservations_size; |
| 2571 return Vector<const uint32_t>(reinterpret_cast<const uint32_t*>(start), | 2573 return Vector<const uint32_t>(reinterpret_cast<const uint32_t*>(start), |
| 2572 GetHeaderValue(kNumCodeStubKeysOffset)); | 2574 GetHeaderValue(kNumCodeStubKeysOffset)); |
| 2573 } | 2575 } |
| 2574 } } // namespace v8::internal | 2576 } } // namespace v8::internal |
| OLD | NEW |