| 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 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1844   set_native_contexts_list(head); | 1844   set_native_contexts_list(head); | 
| 1845 } | 1845 } | 
| 1846 | 1846 | 
| 1847 | 1847 | 
| 1848 void Heap::ProcessAllocationSites(WeakObjectRetainer* retainer) { | 1848 void Heap::ProcessAllocationSites(WeakObjectRetainer* retainer) { | 
| 1849   Object* allocation_site_obj = | 1849   Object* allocation_site_obj = | 
| 1850       VisitWeakList<AllocationSite>(this, allocation_sites_list(), retainer); | 1850       VisitWeakList<AllocationSite>(this, allocation_sites_list(), retainer); | 
| 1851   set_allocation_sites_list(allocation_site_obj); | 1851   set_allocation_sites_list(allocation_site_obj); | 
| 1852 } | 1852 } | 
| 1853 | 1853 | 
|  | 1854 void Heap::ProcessWeakListRoots(WeakObjectRetainer* retainer) { | 
|  | 1855   set_native_contexts_list(retainer->RetainAs(native_contexts_list())); | 
|  | 1856   set_allocation_sites_list(retainer->RetainAs(allocation_sites_list())); | 
|  | 1857 } | 
| 1854 | 1858 | 
| 1855 void Heap::ResetAllAllocationSitesDependentCode(PretenureFlag flag) { | 1859 void Heap::ResetAllAllocationSitesDependentCode(PretenureFlag flag) { | 
| 1856   DisallowHeapAllocation no_allocation_scope; | 1860   DisallowHeapAllocation no_allocation_scope; | 
| 1857   Object* cur = allocation_sites_list(); | 1861   Object* cur = allocation_sites_list(); | 
| 1858   bool marked = false; | 1862   bool marked = false; | 
| 1859   while (cur->IsAllocationSite()) { | 1863   while (cur->IsAllocationSite()) { | 
| 1860     AllocationSite* casted = AllocationSite::cast(cur); | 1864     AllocationSite* casted = AllocationSite::cast(cur); | 
| 1861     if (casted->GetPretenureMode() == flag) { | 1865     if (casted->GetPretenureMode() == flag) { | 
| 1862       casted->ResetPretenureDecision(); | 1866       casted->ResetPretenureDecision(); | 
| 1863       casted->set_deopt_dependent_code(true); | 1867       casted->set_deopt_dependent_code(true); | 
| (...skipping 4480 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6344 } | 6348 } | 
| 6345 | 6349 | 
| 6346 | 6350 | 
| 6347 // static | 6351 // static | 
| 6348 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6352 int Heap::GetStaticVisitorIdForMap(Map* map) { | 
| 6349   return StaticVisitorBase::GetVisitorId(map); | 6353   return StaticVisitorBase::GetVisitorId(map); | 
| 6350 } | 6354 } | 
| 6351 | 6355 | 
| 6352 }  // namespace internal | 6356 }  // namespace internal | 
| 6353 }  // namespace v8 | 6357 }  // namespace v8 | 
| OLD | NEW | 
|---|