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/objects-visiting.h" | 7 #include "src/heap/objects-visiting.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 case CODE_TYPE: | 63 case CODE_TYPE: |
64 return kVisitCode; | 64 return kVisitCode; |
65 | 65 |
66 case CELL_TYPE: | 66 case CELL_TYPE: |
67 return kVisitCell; | 67 return kVisitCell; |
68 | 68 |
69 case PROPERTY_CELL_TYPE: | 69 case PROPERTY_CELL_TYPE: |
70 return kVisitPropertyCell; | 70 return kVisitPropertyCell; |
71 | 71 |
| 72 case WEAK_CELL_TYPE: |
| 73 return kVisitWeakCell; |
| 74 |
72 case JS_SET_TYPE: | 75 case JS_SET_TYPE: |
73 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, | 76 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, |
74 JSSet::kSize); | 77 JSSet::kSize); |
75 | 78 |
76 case JS_MAP_TYPE: | 79 case JS_MAP_TYPE: |
77 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, | 80 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, |
78 JSMap::kSize); | 81 JSMap::kSize); |
79 | 82 |
80 case JS_WEAK_MAP_TYPE: | 83 case JS_WEAK_MAP_TYPE: |
81 case JS_WEAK_SET_TYPE: | 84 case JS_WEAK_SET_TYPE: |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 | 407 |
405 | 408 |
406 template Object* VisitWeakList<JSArrayBuffer>(Heap* heap, Object* list, | 409 template Object* VisitWeakList<JSArrayBuffer>(Heap* heap, Object* list, |
407 WeakObjectRetainer* retainer); | 410 WeakObjectRetainer* retainer); |
408 | 411 |
409 | 412 |
410 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, | 413 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, |
411 WeakObjectRetainer* retainer); | 414 WeakObjectRetainer* retainer); |
412 } | 415 } |
413 } // namespace v8::internal | 416 } // namespace v8::internal |
OLD | NEW |