| 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 24 matching lines...) Expand all Loading... |
| 35 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, | 35 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, |
| 36 instance_size, has_unboxed_fields); | 36 instance_size, has_unboxed_fields); |
| 37 } | 37 } |
| 38 UNREACHABLE(); | 38 UNREACHABLE(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 switch (instance_type) { | 41 switch (instance_type) { |
| 42 case BYTE_ARRAY_TYPE: | 42 case BYTE_ARRAY_TYPE: |
| 43 return kVisitByteArray; | 43 return kVisitByteArray; |
| 44 | 44 |
| 45 case BYTECODE_ARRAY_TYPE: |
| 46 return kVisitBytecodeArray; |
| 47 |
| 45 case FREE_SPACE_TYPE: | 48 case FREE_SPACE_TYPE: |
| 46 return kVisitFreeSpace; | 49 return kVisitFreeSpace; |
| 47 | 50 |
| 48 case FIXED_ARRAY_TYPE: | 51 case FIXED_ARRAY_TYPE: |
| 49 return kVisitFixedArray; | 52 return kVisitFixedArray; |
| 50 | 53 |
| 51 case FIXED_DOUBLE_ARRAY_TYPE: | 54 case FIXED_DOUBLE_ARRAY_TYPE: |
| 52 return kVisitFixedDoubleArray; | 55 return kVisitFixedDoubleArray; |
| 53 | 56 |
| 54 case ODDBALL_TYPE: | 57 case ODDBALL_TYPE: |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 }; | 356 }; |
| 354 | 357 |
| 355 | 358 |
| 356 template Object* VisitWeakList<Context>(Heap* heap, Object* list, | 359 template Object* VisitWeakList<Context>(Heap* heap, Object* list, |
| 357 WeakObjectRetainer* retainer); | 360 WeakObjectRetainer* retainer); |
| 358 | 361 |
| 359 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, | 362 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, |
| 360 WeakObjectRetainer* retainer); | 363 WeakObjectRetainer* retainer); |
| 361 } // namespace internal | 364 } // namespace internal |
| 362 } // namespace v8 | 365 } // namespace v8 |
| OLD | NEW |