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

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

Issue 11550005: Elide unnecessary context reload in generated stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merge with ToT Created 8 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
Index: src/lithium-allocator-inl.h
diff --git a/src/lithium-allocator-inl.h b/src/lithium-allocator-inl.h
index 8f660ce0e00373bdd5521b183527e972fc68c75c..29b81848ceb33fc188b897da526ec9a56235d7bf 100644
--- a/src/lithium-allocator-inl.h
+++ b/src/lithium-allocator-inl.h
@@ -110,7 +110,10 @@ void InputIterator::Advance() {
void InputIterator::SkipUninteresting() {
- while (current_ < limit_ && instr_->InputAt(current_)->IsConstantOperand()) {
+ LOperand* current;
+ while (current_ < limit_ &&
+ (current = instr_->InputAt(current_)) != NULL &&
ulan 2012/12/28 15:40:49 Looks like we can make NULL operands uninteresting
danno 2012/12/28 17:38:41 Done.
+ current->IsConstantOperand()) {
++current_;
}
}

Powered by Google App Engine
This is Rietveld 408576698