Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: runtime/vm/heap_profiler.cc

Issue 11437028: Added Uint8ClampedList. COmpielr optimziations to follow in next CL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698