Index: src/register-allocator-inl.h |
=================================================================== |
--- src/register-allocator-inl.h (revision 1960) |
+++ src/register-allocator-inl.h (working copy) |
@@ -41,10 +41,16 @@ |
void Result::Unuse() { |
if (is_register()) cgen_->allocator()->Unuse(reg()); |
- type_ = INVALID; |
+ invalidate(); |
} |
+void Result::CopyTo(Result* destination) const { |
+ destination->value_ = value_; |
+ if (is_register()) cgen_->allocator()->Use(reg()); |
+} |
+ |
+ |
} } // namespace v8::internal |
#endif // V8_REGISTER_ALLOCATOR_INL_H_ |