Index: src/arm64/lithium-arm64.cc |
diff --git a/src/arm64/lithium-arm64.cc b/src/arm64/lithium-arm64.cc |
index 30076679e2cd3cbeb7af6236ac0d915fdbdea52e..d18808a587b1cd2a50dc9a58120786de46a978ea 100644 |
--- a/src/arm64/lithium-arm64.cc |
+++ b/src/arm64/lithium-arm64.cc |
@@ -2371,6 +2371,10 @@ LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { |
value = UseRegisterAndClobber(instr->value()); |
temp0 = TempRegister(); |
temp1 = TempRegister(); |
+ } else if (instr->NeedsWriteBarrierForMap()) { |
+ value = UseRegister(instr->value()); |
+ temp0 = TempRegister(); |
+ temp1 = TempRegister(); |
} else { |
value = UseRegister(instr->value()); |
temp0 = TempRegister(); |