Index: src/crankshaft/hydrogen-instructions.h |
diff --git a/src/crankshaft/hydrogen-instructions.h b/src/crankshaft/hydrogen-instructions.h |
index 4035e79d844db2a67ba6321cc554a127e9d8eb0d..1cc0820785e785057e7915e789ba005ebd0b8b79 100644 |
--- a/src/crankshaft/hydrogen-instructions.h |
+++ b/src/crankshaft/hydrogen-instructions.h |
@@ -5498,11 +5498,6 @@ inline bool ReceiverObjectNeedsWriteBarrier(HValue* object, |
if (HAllocate::cast(object)->IsNewSpaceAllocation()) { |
return false; |
} |
- // Stores to old space allocations require no write barriers if the value is |
- // a constant provably not in new space. |
- if (value->IsConstant() && HConstant::cast(value)->NotInNewSpace()) { |
- return false; |
- } |
} |
return true; |
} |