Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index e56bb544c546f5d99ce6eba2f56134adb21df2eb..046edbdda2ddb942fafe74cac53475964fe71981 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -4363,11 +4363,11 @@ void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { |
__ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, |
ToRegister(instr->temp()), kDontSaveFPRegs); |
} else { |
+ ASSERT(ToRegister(instr->context()).is(rsi)); |
PushSafepointRegistersScope scope(this); |
if (!object_reg.is(rax)) { |
__ movq(rax, object_reg); |
} |
- LoadContextFromDeferred(instr->context()); |
__ Move(rbx, to_map); |
TransitionElementsKindStub stub(from_kind, to_kind); |
__ CallStub(&stub); |