| 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 23 matching lines...) Expand all Loading... |
| 34 } else { | 34 } else { |
| 35 return kVisitConsString; | 35 return kVisitConsString; |
| 36 } | 36 } |
| 37 | 37 |
| 38 case kSlicedStringTag: | 38 case kSlicedStringTag: |
| 39 return kVisitSlicedString; | 39 return kVisitSlicedString; |
| 40 | 40 |
| 41 case kExternalStringTag: | 41 case kExternalStringTag: |
| 42 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, | 42 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, |
| 43 instance_size, has_unboxed_fields); | 43 instance_size, has_unboxed_fields); |
| 44 | |
| 45 case kThinStringTag: | |
| 46 return kVisitThinString; | |
| 47 } | 44 } |
| 48 UNREACHABLE(); | 45 UNREACHABLE(); |
| 49 } | 46 } |
| 50 | 47 |
| 51 switch (instance_type) { | 48 switch (instance_type) { |
| 52 case BYTE_ARRAY_TYPE: | 49 case BYTE_ARRAY_TYPE: |
| 53 return kVisitByteArray; | 50 return kVisitByteArray; |
| 54 | 51 |
| 55 case BYTECODE_ARRAY_TYPE: | 52 case BYTECODE_ARRAY_TYPE: |
| 56 return kVisitBytecodeArray; | 53 return kVisitBytecodeArray; |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 }; | 397 }; |
| 401 | 398 |
| 402 | 399 |
| 403 template Object* VisitWeakList<Context>(Heap* heap, Object* list, | 400 template Object* VisitWeakList<Context>(Heap* heap, Object* list, |
| 404 WeakObjectRetainer* retainer); | 401 WeakObjectRetainer* retainer); |
| 405 | 402 |
| 406 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, | 403 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, |
| 407 WeakObjectRetainer* retainer); | 404 WeakObjectRetainer* retainer); |
| 408 } // namespace internal | 405 } // namespace internal |
| 409 } // namespace v8 | 406 } // namespace v8 |
| OLD | NEW |