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

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

Issue 2258083002: [heap] Don't clear black areas in Heap::AllocateFillerObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | 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/ast/context-slot-cache.h" 9 #include "src/ast/context-slot-cache.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 HeapObject* obj = nullptr; 2124 HeapObject* obj = nullptr;
2125 { 2125 {
2126 AllocationAlignment align = double_align ? kDoubleAligned : kWordAligned; 2126 AllocationAlignment align = double_align ? kDoubleAligned : kWordAligned;
2127 AllocationResult allocation = AllocateRaw(size, space, align); 2127 AllocationResult allocation = AllocateRaw(size, space, align);
2128 if (!allocation.To(&obj)) return allocation; 2128 if (!allocation.To(&obj)) return allocation;
2129 } 2129 }
2130 #ifdef DEBUG 2130 #ifdef DEBUG
2131 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); 2131 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address());
2132 DCHECK(chunk->owner()->identity() == space); 2132 DCHECK(chunk->owner()->identity() == space);
2133 #endif 2133 #endif
2134 CreateFillerObjectAt(obj->address(), size, ClearRecordedSlots::kNo); 2134 CreateFillerObjectAt(obj->address(), size, ClearRecordedSlots::kNo,
2135 ClearBlackArea::kNo);
2135 return obj; 2136 return obj;
2136 } 2137 }
2137 2138
2138 2139
2139 const Heap::StringTypeTable Heap::string_type_table[] = { 2140 const Heap::StringTypeTable Heap::string_type_table[] = {
2140 #define STRING_TYPE_ELEMENT(type, size, name, camel_name) \ 2141 #define STRING_TYPE_ELEMENT(type, size, name, camel_name) \
2141 { type, size, k##camel_name##MapRootIndex } \ 2142 { type, size, k##camel_name##MapRootIndex } \
2142 , 2143 ,
2143 STRING_TYPE_LIST(STRING_TYPE_ELEMENT) 2144 STRING_TYPE_LIST(STRING_TYPE_ELEMENT)
2144 #undef STRING_TYPE_ELEMENT 2145 #undef STRING_TYPE_ELEMENT
(...skipping 4350 matching lines...) Expand 10 before | Expand all | Expand 10 after
6495 } 6496 }
6496 6497
6497 6498
6498 // static 6499 // static
6499 int Heap::GetStaticVisitorIdForMap(Map* map) { 6500 int Heap::GetStaticVisitorIdForMap(Map* map) {
6500 return StaticVisitorBase::GetVisitorId(map); 6501 return StaticVisitorBase::GetVisitorId(map);
6501 } 6502 }
6502 6503
6503 } // namespace internal 6504 } // namespace internal
6504 } // namespace v8 6505 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698