Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index a715915f1f6d374715e902a1b9723b232ef8b06a..b42428391508e5252ae6f900765751dcba75e40b 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -763,6 +763,9 @@ class HValue : public ZoneObject { |
void SetFlag(Flag f) { flags_ |= (1 << f); } |
void ClearFlag(Flag f) { flags_ &= ~(1 << f); } |
bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; } |
+ void CopyFlag(Flag f, HValue* other) { |
+ if (other->CheckFlag(f)) SetFlag(f); |
+ } |
// Returns true if the flag specified is set for all uses, false otherwise. |
bool CheckUsesForFlag(Flag f) const; |