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/heap/objects-visiting.h" | 5 #include "src/heap/objects-visiting.h" |
6 | 6 |
7 #include "src/heap/mark-compact-inl.h" | 7 #include "src/heap/mark-compact-inl.h" |
8 #include "src/heap/objects-visiting-inl.h" | 8 #include "src/heap/objects-visiting-inl.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 case JS_WEAK_SET_TYPE: | 86 case JS_WEAK_SET_TYPE: |
87 return kVisitJSWeakCollection; | 87 return kVisitJSWeakCollection; |
88 | 88 |
89 case JS_REGEXP_TYPE: | 89 case JS_REGEXP_TYPE: |
90 return kVisitJSRegExp; | 90 return kVisitJSRegExp; |
91 | 91 |
92 case SHARED_FUNCTION_INFO_TYPE: | 92 case SHARED_FUNCTION_INFO_TYPE: |
93 return kVisitSharedFunctionInfo; | 93 return kVisitSharedFunctionInfo; |
94 | 94 |
95 case JS_PROXY_TYPE: | 95 case JS_PROXY_TYPE: |
96 case JS_FUNCTION_PROXY_TYPE: | |
97 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, | 96 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, |
98 instance_size, has_unboxed_fields); | 97 instance_size, has_unboxed_fields); |
99 | 98 |
100 case SYMBOL_TYPE: | 99 case SYMBOL_TYPE: |
101 return kVisitSymbol; | 100 return kVisitSymbol; |
102 | 101 |
103 case JS_ARRAY_BUFFER_TYPE: | 102 case JS_ARRAY_BUFFER_TYPE: |
104 return kVisitJSArrayBuffer; | 103 return kVisitJSArrayBuffer; |
105 | 104 |
106 case JS_OBJECT_TYPE: | 105 case JS_OBJECT_TYPE: |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 }; | 352 }; |
354 | 353 |
355 | 354 |
356 template Object* VisitWeakList<Context>(Heap* heap, Object* list, | 355 template Object* VisitWeakList<Context>(Heap* heap, Object* list, |
357 WeakObjectRetainer* retainer); | 356 WeakObjectRetainer* retainer); |
358 | 357 |
359 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, | 358 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, |
360 WeakObjectRetainer* retainer); | 359 WeakObjectRetainer* retainer); |
361 } // namespace internal | 360 } // namespace internal |
362 } // namespace v8 | 361 } // namespace v8 |
OLD | NEW |