Chromium Code Reviews| Index: runtime/vm/raw_object.cc |
| =================================================================== |
| --- runtime/vm/raw_object.cc (revision 15751) |
| +++ runtime/vm/raw_object.cc (working copy) |
| @@ -123,6 +123,13 @@ |
| instance_size = Uint8Array::InstanceSize(byte_array_length); |
| break; |
| } |
| + case kUint8ClampedArrayCid: { |
| + const RawUint8ClampedArray* raw_byte_array = |
| + reinterpret_cast<const RawUint8ClampedArray*>(this); |
| + intptr_t byte_array_length = Smi::Value(raw_byte_array->ptr()->length_); |
| + instance_size = Uint8ClampedArray::InstanceSize(byte_array_length); |
| + break; |
| + } |
| case kInt16ArrayCid: { |
| const RawInt16Array* raw_byte_array = |
| reinterpret_cast<const RawInt16Array*>(this); |
| @@ -763,6 +770,16 @@ |
| } |
| +intptr_t RawUint8ClampedArray::VisitUint8ClampedArrayPointers( |
| + RawUint8ClampedArray *raw_obj, ObjectPointerVisitor* visitor) { |
| + // Make sure that we got here with the tagged pointer as this. |
| + ASSERT(raw_obj->IsHeapObject()); |
| + intptr_t length = Smi::Value(raw_obj->ptr()->length_); |
| + visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| + return Uint8ClampedArray::InstanceSize(length); |
| +} |
| + |
| + |
| intptr_t RawInt16Array::VisitInt16ArrayPointers( |
| RawInt16Array *raw_obj, ObjectPointerVisitor* visitor) { |
| // Make sure that we got here with the tagged pointer as this. |
| @@ -861,6 +878,16 @@ |
| } |
| +intptr_t RawExternalUint8ClampedArray::VisitExternalUint8ClampedArrayPointers( |
| + RawExternalUint8ClampedArray* raw_obj, ObjectPointerVisitor* visitor) { |
| + // Make sure that we got here with the tagged pointer as this. |
| + ASSERT(raw_obj->IsHeapObject()); |
| + visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| + return ExternalUint8ClampedArray::InstanceSize(); |
| +} |
| + |
| + |
| + |
|
cshapiro
2012/12/05 23:01:49
extra blank line
srdjan
2012/12/06 19:23:14
Done.
|
| intptr_t RawExternalInt16Array::VisitExternalInt16ArrayPointers( |
| RawExternalInt16Array* raw_obj, ObjectPointerVisitor* visitor) { |
| // Make sure that we got here with the tagged pointer as this. |