Index: src/a64/lithium-codegen-a64.cc |
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc |
index 0bb420cf590a83f799d0225af6866643f9aa32ab..c222f49fd769c32d1a1669c3448fb6e7fb9b754c 100644 |
--- a/src/a64/lithium-codegen-a64.cc |
+++ b/src/a64/lithium-codegen-a64.cc |
@@ -5630,7 +5630,8 @@ void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { |
this, Safepoint::kWithRegistersAndDoubles); |
__ Mov(x0, object); |
__ Mov(x1, Operand(to_map)); |
- TransitionElementsKindStub stub(from_kind, to_kind); |
+ bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
+ TransitionElementsKindStub stub(from_kind, to_kind, is_js_array); |
__ CallStub(&stub); |
RecordSafepointWithRegistersAndDoubles( |
instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |