| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |