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; |
44 } | 47 } |
45 UNREACHABLE(); | 48 UNREACHABLE(); |
46 } | 49 } |
47 | 50 |
48 switch (instance_type) { | 51 switch (instance_type) { |
49 case BYTE_ARRAY_TYPE: | 52 case BYTE_ARRAY_TYPE: |
50 return kVisitByteArray; | 53 return kVisitByteArray; |
51 | 54 |
52 case BYTECODE_ARRAY_TYPE: | 55 case BYTECODE_ARRAY_TYPE: |
53 return kVisitBytecodeArray; | 56 return kVisitBytecodeArray; |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 }; | 400 }; |
398 | 401 |
399 | 402 |
400 template Object* VisitWeakList<Context>(Heap* heap, Object* list, | 403 template Object* VisitWeakList<Context>(Heap* heap, Object* list, |
401 WeakObjectRetainer* retainer); | 404 WeakObjectRetainer* retainer); |
402 | 405 |
403 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, | 406 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, |
404 WeakObjectRetainer* retainer); | 407 WeakObjectRetainer* retainer); |
405 } // namespace internal | 408 } // namespace internal |
406 } // namespace v8 | 409 } // namespace v8 |
OLD | NEW |