| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/heap_profiler.h" | 5 #include "vm/heap_profiler.h" |
| 6 | 6 |
| 7 #include "vm/dart_api_state.h" | 7 #include "vm/dart_api_state.h" |
| 8 #include "vm/object.h" | 8 #include "vm/object.h" |
| 9 #include "vm/raw_object.h" | 9 #include "vm/raw_object.h" |
| 10 #include "vm/stack_frame.h" | 10 #include "vm/stack_frame.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 WriteClassDump(raw_class); | 219 WriteClassDump(raw_class); |
| 220 break; | 220 break; |
| 221 } | 221 } |
| 222 case kArrayCid: | 222 case kArrayCid: |
| 223 case kImmutableArrayCid: { | 223 case kImmutableArrayCid: { |
| 224 WriteObjectArrayDump(reinterpret_cast<const RawArray*>(raw_obj)); | 224 WriteObjectArrayDump(reinterpret_cast<const RawArray*>(raw_obj)); |
| 225 break; | 225 break; |
| 226 } | 226 } |
| 227 case kInt8ArrayCid: | 227 case kInt8ArrayCid: |
| 228 case kUint8ArrayCid: { | 228 case kUint8ArrayCid: |
| 229 case kUint8ClampedArrayCid: { |
| 229 const RawInt8Array* raw_int8_array = | 230 const RawInt8Array* raw_int8_array = |
| 230 reinterpret_cast<const RawInt8Array*>(raw_obj); | 231 reinterpret_cast<const RawInt8Array*>(raw_obj); |
| 231 WritePrimitiveArrayDump(raw_int8_array, | 232 WritePrimitiveArrayDump(raw_int8_array, |
| 232 kByte, | 233 kByte, |
| 233 &raw_int8_array->data_[0]); | 234 &raw_int8_array->data_[0]); |
| 234 break; | 235 break; |
| 235 } | 236 } |
| 236 case kInt16ArrayCid: | 237 case kInt16ArrayCid: |
| 237 case kUint16ArrayCid: { | 238 case kUint16ArrayCid: { |
| 238 const RawInt16Array* raw_int16_array = | 239 const RawInt16Array* raw_int16_array = |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 RawObject* raw_obj = handle->raw(); | 703 RawObject* raw_obj = handle->raw(); |
| 703 visitor_->VisitPointer(&raw_obj); | 704 visitor_->VisitPointer(&raw_obj); |
| 704 } | 705 } |
| 705 | 706 |
| 706 | 707 |
| 707 void HeapProfilerObjectVisitor::VisitObject(RawObject* raw_obj) { | 708 void HeapProfilerObjectVisitor::VisitObject(RawObject* raw_obj) { |
| 708 profiler_->WriteObject(raw_obj); | 709 profiler_->WriteObject(raw_obj); |
| 709 } | 710 } |
| 710 | 711 |
| 711 } // namespace dart | 712 } // namespace dart |
| OLD | NEW |