From: fschneider@chromium.org Date: Thu, 7 Jul 2011 10:14:55 +0000 (+0000) Subject: Don't emit a write barrier when storing boolean-typed values. X-Git-Tag: upstream/4.7.83~18958 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d54460fd8585cc18ee17e49637b7397f48b0c620;p=platform%2Fupstream%2Fv8.git 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 --- diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h index cc32b93..5990352 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()); }