| 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/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 | 1578 |
| 1579 int entries_count = | 1579 int entries_count = |
| 1580 static_cast<int>(head_end - head_start) / kEntrySizeInWords; | 1580 static_cast<int>(head_end - head_start) / kEntrySizeInWords; |
| 1581 | 1581 |
| 1582 emergency_stack_ = new List<Entry>(2 * entries_count); | 1582 emergency_stack_ = new List<Entry>(2 * entries_count); |
| 1583 | 1583 |
| 1584 while (head_start != head_end) { | 1584 while (head_start != head_end) { |
| 1585 struct Entry* entry = head_start++; | 1585 struct Entry* entry = head_start++; |
| 1586 // New space allocation in SemiSpaceCopyObject marked the region | 1586 // New space allocation in SemiSpaceCopyObject marked the region |
| 1587 // overlapping with promotion queue as uninitialized. | 1587 // overlapping with promotion queue as uninitialized. |
| 1588 MSAN_MEMORY_IS_INITIALIZED(&entry->size_, sizeof(size)); | 1588 MSAN_MEMORY_IS_INITIALIZED(entry, sizeof(struct Entry)); |
| 1589 MSAN_MEMORY_IS_INITIALIZED(&entry->obj_, sizeof(obj)); | |
| 1590 emergency_stack_->Add(*entry); | 1589 emergency_stack_->Add(*entry); |
| 1591 } | 1590 } |
| 1592 rear_ = head_end; | 1591 rear_ = head_end; |
| 1593 } | 1592 } |
| 1594 | 1593 |
| 1595 | 1594 |
| 1596 class ScavengeWeakObjectRetainer : public WeakObjectRetainer { | 1595 class ScavengeWeakObjectRetainer : public WeakObjectRetainer { |
| 1597 public: | 1596 public: |
| 1598 explicit ScavengeWeakObjectRetainer(Heap* heap) : heap_(heap) {} | 1597 explicit ScavengeWeakObjectRetainer(Heap* heap) : heap_(heap) {} |
| 1599 | 1598 |
| (...skipping 4750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6350 } | 6349 } |
| 6351 | 6350 |
| 6352 | 6351 |
| 6353 // static | 6352 // static |
| 6354 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6353 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6355 return StaticVisitorBase::GetVisitorId(map); | 6354 return StaticVisitorBase::GetVisitorId(map); |
| 6356 } | 6355 } |
| 6357 | 6356 |
| 6358 } // namespace internal | 6357 } // namespace internal |
| 6359 } // namespace v8 | 6358 } // namespace v8 |
| OLD | NEW |