Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index a51d67f3e090553b6c3c8dbd334f4b100a1043ac..8089a210876458cd26285cc86c33ac579f505057 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -765,6 +765,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; |