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

Side by Side Diff: src/heap/heap.cc

Issue 1343043002: [heap] Move slots buffer into a separate file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 | « BUILD.gn ('k') | src/heap/mark-compact.h » ('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/heap/heap.h" 5 #include "src/heap/heap.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/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 allocation_sites_scratchpad()->set(allocation_sites_scratchpad_length_, 2845 allocation_sites_scratchpad()->set(allocation_sites_scratchpad_length_,
2846 site, SKIP_WRITE_BARRIER); 2846 site, SKIP_WRITE_BARRIER);
2847 Object** slot = allocation_sites_scratchpad()->RawFieldOfElementAt( 2847 Object** slot = allocation_sites_scratchpad()->RawFieldOfElementAt(
2848 allocation_sites_scratchpad_length_); 2848 allocation_sites_scratchpad_length_);
2849 2849
2850 if (mode == RECORD_SCRATCHPAD_SLOT) { 2850 if (mode == RECORD_SCRATCHPAD_SLOT) {
2851 // We need to allow slots buffer overflow here since the evacuation 2851 // We need to allow slots buffer overflow here since the evacuation
2852 // candidates are not part of the global list of old space pages and 2852 // candidates are not part of the global list of old space pages and
2853 // releasing an evacuation candidate due to a slots buffer overflow 2853 // releasing an evacuation candidate due to a slots buffer overflow
2854 // results in lost pages. 2854 // results in lost pages.
2855 mark_compact_collector()->RecordSlot(allocation_sites_scratchpad(), slot, 2855 mark_compact_collector()->ForceRecordSlot(allocation_sites_scratchpad(),
2856 *slot, SlotsBuffer::IGNORE_OVERFLOW); 2856 slot, *slot);
2857 } 2857 }
2858 allocation_sites_scratchpad_length_++; 2858 allocation_sites_scratchpad_length_++;
2859 } 2859 }
2860 } 2860 }
2861 2861
2862 2862
2863 2863
2864 Map* Heap::MapForFixedTypedArray(ExternalArrayType array_type) { 2864 Map* Heap::MapForFixedTypedArray(ExternalArrayType array_type) {
2865 return Map::cast(roots_[RootIndexForFixedTypedArray(array_type)]); 2865 return Map::cast(roots_[RootIndexForFixedTypedArray(array_type)]);
2866 } 2866 }
(...skipping 3238 matching lines...) Expand 10 before | Expand all | Expand 10 after
6105 } 6105 }
6106 6106
6107 6107
6108 // static 6108 // static
6109 int Heap::GetStaticVisitorIdForMap(Map* map) { 6109 int Heap::GetStaticVisitorIdForMap(Map* map) {
6110 return StaticVisitorBase::GetVisitorId(map); 6110 return StaticVisitorBase::GetVisitorId(map);
6111 } 6111 }
6112 6112
6113 } // namespace internal 6113 } // namespace internal
6114 } // namespace v8 6114 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698