From d54460fd8585cc18ee17e49637b7397f48b0c620 Mon Sep 17 00:00:00 2001 From: "fschneider@chromium.org" Date: Thu, 7 Jul 2011 10:14:55 +0000 Subject: [PATCH] Don't emit a write barrier when storing boolean-typed values. Review URL: http://codereview.chromium.org/7312022 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8561 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen-instructions.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h index cc32b93831..599035220c 100644 --- a/src/hydrogen-instructions.h +++ b/src/hydrogen-instructions.h @@ -3362,8 +3362,9 @@ class HLoadContextSlot: public HUnaryOperation { static inline bool StoringValueNeedsWriteBarrier(HValue* value) { - return !value->type().IsSmi() && - !(value->IsConstant() && HConstant::cast(value)->InOldSpace()); + return !value->type().IsBoolean() + && !value->type().IsSmi() + && !(value->IsConstant() && HConstant::cast(value)->InOldSpace()); }