Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index dede47013587984341f456394166eb787bf576cc..44f0417744cb4b732ceecbefe5cf7bf3372c8d0d 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -1939,7 +1939,7 @@ LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { |
LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { |
- bool needs_write_barrier = !instr->value()->type().IsSmi(); |
+ bool needs_write_barrier = instr->NeedsWriteBarrier(); |
LOperand* obj = needs_write_barrier |
? UseTempRegister(instr->object()) |