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
This commit is contained in:
parent
82e53270dc
commit
d54460fd85
@ -3362,8 +3362,9 @@ class HLoadContextSlot: public HUnaryOperation {
|
|||||||
|
|
||||||
|
|
||||||
static inline bool StoringValueNeedsWriteBarrier(HValue* value) {
|
static inline bool StoringValueNeedsWriteBarrier(HValue* value) {
|
||||||
return !value->type().IsSmi() &&
|
return !value->type().IsBoolean()
|
||||||
!(value->IsConstant() && HConstant::cast(value)->InOldSpace());
|
&& !value->type().IsSmi()
|
||||||
|
&& !(value->IsConstant() && HConstant::cast(value)->InOldSpace());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user