Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: src/serialize.cc

Issue 904633003: Just visit young array buffers during scavenge. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime-typedarray.cc ('k') | test/cctest/test-weaktypedarrays.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_buffer_views_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 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 return GetHeaderValue(kNumInternalizedStringsOffset); 2637 return GetHeaderValue(kNumInternalizedStringsOffset);
2636 } 2638 }
2637 2639
2638 Vector<const uint32_t> SerializedCodeData::CodeStubKeys() const { 2640 Vector<const uint32_t> SerializedCodeData::CodeStubKeys() const {
2639 int reservations_size = GetHeaderValue(kReservationsOffset) * kInt32Size; 2641 int reservations_size = GetHeaderValue(kReservationsOffset) * kInt32Size;
2640 const byte* start = data_ + kHeaderSize + reservations_size; 2642 const byte* start = data_ + kHeaderSize + reservations_size;
2641 return Vector<const uint32_t>(reinterpret_cast<const uint32_t*>(start), 2643 return Vector<const uint32_t>(reinterpret_cast<const uint32_t*>(start),
2642 GetHeaderValue(kNumCodeStubKeysOffset)); 2644 GetHeaderValue(kNumCodeStubKeysOffset));
2643 } 2645 }
2644 } } // namespace v8::internal 2646 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime-typedarray.cc ('k') | test/cctest/test-weaktypedarrays.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698