Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 332c2ee31f027d8a0b78b9085b733c14942a796c..10f8e0eba85da7a77957693364a889483b9487ec 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -4373,7 +4373,8 @@ void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { |
__ movp(rax, object_reg); |
} |
__ Move(rbx, 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); |
RecordSafepointWithRegisters( |
instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |