Index: src/lithium.h |
diff --git a/src/lithium.h b/src/lithium.h |
index 9a53b89a89456c0e58f3c1c487345503b77b458c..20da21a63cec706d36b03240d43d9d819a9e8995 100644 |
--- a/src/lithium.h |
+++ b/src/lithium.h |
@@ -165,8 +165,7 @@ class LUnallocated: public LOperand { |
} |
Policy policy() const { return PolicyField::decode(value_); } |
void set_policy(Policy policy) { |
- value_ &= ~PolicyField::mask(); |
- value_ |= PolicyField::encode(policy); |
+ value_ = PolicyField::update(value_, policy); |
} |
int fixed_index() const { |
return static_cast<int>(value_) >> kFixedIndexShift; |
@@ -177,8 +176,7 @@ class LUnallocated: public LOperand { |
} |
void set_virtual_register(unsigned id) { |
- value_ &= ~VirtualRegisterField::mask(); |
- value_ |= VirtualRegisterField::encode(id); |
+ value_ = VirtualRegisterField::update(value_, id); |
} |
LUnallocated* CopyUnconstrained() { |