Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index b7e2fdd8fa1fc713c73bc6cbff32208d2d3ab35d..ac5e2045fb0720c9dd66386fdd488904d6247315 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -114,6 +114,9 @@ void HeapObject::HeapObjectPrint(FILE* out) { |
case EXTERNAL_FLOAT_ARRAY_TYPE: |
ExternalFloatArray::cast(this)->ExternalFloatArrayPrint(out); |
break; |
+ case EXTERNAL_DOUBLE_ARRAY_TYPE: |
+ ExternalDoubleArray::cast(this)->ExternalDoubleArrayPrint(out); |
+ break; |
case FILLER_TYPE: |
PrintF(out, "filler"); |
break; |
@@ -217,6 +220,11 @@ void ExternalFloatArray::ExternalFloatArrayPrint(FILE* out) { |
} |
+void ExternalDoubleArray::ExternalDoubleArrayPrint(FILE* out) { |
+ PrintF(out, "external double array"); |
+} |
+ |
+ |
void JSObject::PrintProperties(FILE* out) { |
if (HasFastProperties()) { |
DescriptorArray* descs = map()->instance_descriptors(); |
@@ -330,6 +338,13 @@ void JSObject::PrintElements(FILE* out) { |
} |
break; |
} |
+ case EXTERNAL_DOUBLE_ELEMENTS: { |
+ ExternalDoubleArray* p = ExternalDoubleArray::cast(elements()); |
+ for (int i = 0; i < p->length(); i++) { |
+ PrintF(out, " %d: %f\n", i, p->get(i)); |
+ } |
+ break; |
+ } |
case DICTIONARY_ELEMENTS: |
elements()->Print(out); |
break; |
@@ -383,6 +398,7 @@ static const char* TypeToString(InstanceType type) { |
case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
return "EXTERNAL_UNSIGNED_INT_ARRAY"; |
case EXTERNAL_FLOAT_ARRAY_TYPE: return "EXTERNAL_FLOAT_ARRAY"; |
+ case EXTERNAL_DOUBLE_ARRAY_TYPE: return "EXTERNAL_DOUBLE_ARRAY"; |
case FILLER_TYPE: return "FILLER"; |
case JS_OBJECT_TYPE: return "JS_OBJECT"; |
case JS_CONTEXT_EXTENSION_OBJECT_TYPE: return "JS_CONTEXT_EXTENSION_OBJECT"; |