OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
| 7 #include "src/heap/mark-compact-inl.h" |
7 #include "src/heap/objects-visiting.h" | 8 #include "src/heap/objects-visiting.h" |
8 | 9 |
9 namespace v8 { | 10 namespace v8 { |
10 namespace internal { | 11 namespace internal { |
11 | 12 |
12 | 13 |
13 StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( | 14 StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( |
14 int instance_type, int instance_size, bool has_unboxed_fields) { | 15 int instance_type, int instance_size, bool has_unboxed_fields) { |
15 if (instance_type < FIRST_NONSTRING_TYPE) { | 16 if (instance_type < FIRST_NONSTRING_TYPE) { |
16 switch (instance_type & kStringRepresentationMask) { | 17 switch (instance_type & kStringRepresentationMask) { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 }; | 357 }; |
357 | 358 |
358 | 359 |
359 template Object* VisitWeakList<Context>(Heap* heap, Object* list, | 360 template Object* VisitWeakList<Context>(Heap* heap, Object* list, |
360 WeakObjectRetainer* retainer); | 361 WeakObjectRetainer* retainer); |
361 | 362 |
362 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, | 363 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, |
363 WeakObjectRetainer* retainer); | 364 WeakObjectRetainer* retainer); |
364 } // namespace internal | 365 } // namespace internal |
365 } // namespace v8 | 366 } // namespace v8 |
OLD | NEW |