Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: src/register-allocator-inl.h

Issue 113455: Clean up the Result class. Reduce the size of Result from four words... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« src/register-allocator.h ('K') | « src/register-allocator.cc ('k') | src/virtual-frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698