Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 77f85b2fcc7a154814d8bd410bbc31e246347028..03835e4b9fc2511e7931677e8eee42da3adce6e4 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -9199,13 +9199,13 @@ static void IterateExternalArrayElements(Isolate* isolate, |
if (elements_are_guaranteed_smis) { |
for (uint32_t j = 0; j < len; j++) { |
HandleScope loop_scope; |
- Handle<Smi> e(Smi::FromInt(static_cast<int>(array->get(j)))); |
+ Handle<Smi> e(Smi::FromInt(static_cast<int>(array->get_scalar(j)))); |
visitor->visit(j, e); |
} |
} else { |
for (uint32_t j = 0; j < len; j++) { |
HandleScope loop_scope; |
- int64_t val = static_cast<int64_t>(array->get(j)); |
+ int64_t val = static_cast<int64_t>(array->get_scalar(j)); |
if (Smi::IsValid(static_cast<intptr_t>(val))) { |
Handle<Smi> e(Smi::FromInt(static_cast<int>(val))); |
visitor->visit(j, e); |
@@ -9219,7 +9219,7 @@ static void IterateExternalArrayElements(Isolate* isolate, |
} else { |
for (uint32_t j = 0; j < len; j++) { |
HandleScope loop_scope(isolate); |
- Handle<Object> e = isolate->factory()->NewNumber(array->get(j)); |
+ Handle<Object> e = isolate->factory()->NewNumber(array->get_scalar(j)); |
visitor->visit(j, e); |
} |
} |
@@ -9405,7 +9405,7 @@ static bool IterateElements(Isolate* isolate, |
Handle<ExternalPixelArray> pixels(ExternalPixelArray::cast( |
receiver->elements())); |
for (uint32_t j = 0; j < length; j++) { |
- Handle<Smi> e(Smi::FromInt(pixels->get(j))); |
+ Handle<Smi> e(Smi::FromInt(pixels->get_scalar(j))); |
visitor->visit(j, e); |
} |
break; |