Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 5cb5269d7a6ac09304abe36f8c20c9ff4a52fb88..04e8d4a09d67896012a8b6150f2158fcbb95546e 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -289,7 +289,7 @@ void JSObject::PrintElements(FILE* out) { |
if (p->is_the_hole(i)) { |
PrintF(out, " %d: <the hole>", i); |
} else { |
- PrintF(out, " %d: %g", i, p->get(i)); |
+ PrintF(out, " %d: %g", i, p->get_scalar(i)); |
} |
PrintF(out, "\n"); |
} |
@@ -298,14 +298,14 @@ void JSObject::PrintElements(FILE* out) { |
case EXTERNAL_PIXEL_ELEMENTS: { |
ExternalPixelArray* p = ExternalPixelArray::cast(elements()); |
for (int i = 0; i < p->length(); i++) { |
- PrintF(out, " %d: %d\n", i, p->get(i)); |
+ PrintF(out, " %d: %d\n", i, p->get_scalar(i)); |
} |
break; |
} |
case EXTERNAL_BYTE_ELEMENTS: { |
ExternalByteArray* p = ExternalByteArray::cast(elements()); |
for (int i = 0; i < p->length(); i++) { |
- PrintF(out, " %d: %d\n", i, static_cast<int>(p->get(i))); |
+ PrintF(out, " %d: %d\n", i, static_cast<int>(p->get_scalar(i))); |
} |
break; |
} |
@@ -313,14 +313,14 @@ void JSObject::PrintElements(FILE* out) { |
ExternalUnsignedByteArray* p = |
ExternalUnsignedByteArray::cast(elements()); |
for (int i = 0; i < p->length(); i++) { |
- PrintF(out, " %d: %d\n", i, static_cast<int>(p->get(i))); |
+ PrintF(out, " %d: %d\n", i, static_cast<int>(p->get_scalar(i))); |
} |
break; |
} |
case EXTERNAL_SHORT_ELEMENTS: { |
ExternalShortArray* p = ExternalShortArray::cast(elements()); |
for (int i = 0; i < p->length(); i++) { |
- PrintF(out, " %d: %d\n", i, static_cast<int>(p->get(i))); |
+ PrintF(out, " %d: %d\n", i, static_cast<int>(p->get_scalar(i))); |
} |
break; |
} |
@@ -328,14 +328,14 @@ void JSObject::PrintElements(FILE* out) { |
ExternalUnsignedShortArray* p = |
ExternalUnsignedShortArray::cast(elements()); |
for (int i = 0; i < p->length(); i++) { |
- PrintF(out, " %d: %d\n", i, static_cast<int>(p->get(i))); |
+ PrintF(out, " %d: %d\n", i, static_cast<int>(p->get_scalar(i))); |
} |
break; |
} |
case EXTERNAL_INT_ELEMENTS: { |
ExternalIntArray* p = ExternalIntArray::cast(elements()); |
for (int i = 0; i < p->length(); i++) { |
- PrintF(out, " %d: %d\n", i, static_cast<int>(p->get(i))); |
+ PrintF(out, " %d: %d\n", i, static_cast<int>(p->get_scalar(i))); |
} |
break; |
} |
@@ -343,21 +343,21 @@ void JSObject::PrintElements(FILE* out) { |
ExternalUnsignedIntArray* p = |
ExternalUnsignedIntArray::cast(elements()); |
for (int i = 0; i < p->length(); i++) { |
- PrintF(out, " %d: %d\n", i, static_cast<int>(p->get(i))); |
+ PrintF(out, " %d: %d\n", i, static_cast<int>(p->get_scalar(i))); |
} |
break; |
} |
case EXTERNAL_FLOAT_ELEMENTS: { |
ExternalFloatArray* p = ExternalFloatArray::cast(elements()); |
for (int i = 0; i < p->length(); i++) { |
- PrintF(out, " %d: %f\n", i, p->get(i)); |
+ PrintF(out, " %d: %f\n", i, p->get_scalar(i)); |
} |
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)); |
+ PrintF(out, " %d: %f\n", i, p->get_scalar(i)); |
} |
break; |
} |