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

Unified Diff: src/register-allocator-ia32.cc

Issue 17004: Experimental: add a has_valid_frame predicate to the code generator... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years 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
« no previous file with comments | « src/jump-target-ia32.cc ('k') | src/virtual-frame-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/register-allocator-ia32.cc
===================================================================
--- src/register-allocator-ia32.cc (revision 1019)
+++ src/register-allocator-ia32.cc (working copy)
@@ -93,7 +93,7 @@
}
*this = fresh;
} else if (is_register() && reg().is(target)) {
- ASSERT(cgen_->frame() != NULL);
+ ASSERT(cgen_->has_valid_frame());
cgen_->frame()->Spill(target);
ASSERT(cgen_->allocator()->count(target) == 1);
}
@@ -130,7 +130,7 @@
Result result = AllocateWithoutSpilling();
if (!result.is_valid()) {
// Ask the current frame to spill a register.
- ASSERT(cgen_->frame() != NULL);
+ ASSERT(cgen_->has_valid_frame());
Register free_reg = cgen_->frame()->SpillAnyRegister();
if (free_reg.is_valid()) {
ASSERT(!is_used(free_reg));
@@ -148,7 +148,7 @@
}
// If the target is only referenced in the frame, it can be spilled and
// then allocated.
- ASSERT(cgen_->frame() != NULL);
+ ASSERT(cgen_->has_valid_frame());
if (count(target) == cgen_->frame()->register_count(target)) {
cgen_->frame()->Spill(target);
ASSERT(!is_used(target));
« no previous file with comments | « src/jump-target-ia32.cc ('k') | src/virtual-frame-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698