Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 93e49082bf7c4cf02b7d0104f42edd8add011968..95bcd0c4750ffa1a249f1f357b3b31d786e7fd7f 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -6428,6 +6428,7 @@ class HStoreNamedField V8_FINAL : public HTemplateInstruction<3> { |
virtual void HandleSideEffectDominator(GVNFlag side_effect, |
HValue* dominator) V8_OVERRIDE { |
ASSERT(side_effect == kChangesNewSpacePromotion); |
+ if (!FLAG_use_write_barrier_elimination) return; |
new_space_dominator_ = dominator; |
} |
virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |