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

Unified Diff: src/lithium-allocator.cc

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.cc
diff --git a/src/lithium-allocator.cc b/src/lithium-allocator.cc
index b23c86766a6fb71e86927aebefdd1b2034aab359..dcaa91e8662860ea21619ff27fa93e66a76c1e4c 100644
--- a/src/lithium-allocator.cc
+++ b/src/lithium-allocator.cc
@@ -830,6 +830,7 @@ void LAllocator::MeetConstraintsBetween(LInstruction* first,
// Handle fixed input operands of second instruction.
if (second != NULL) {
for (UseIterator it(second); !it.Done(); it.Advance()) {
+ if (it.Current() == NULL) continue;
LUnallocated* cur_input = LUnallocated::cast(it.Current());
if (cur_input->HasFixedPolicy()) {
LUnallocated* input_copy = cur_input->CopyUnconstrained(zone());
@@ -973,6 +974,7 @@ void LAllocator::ProcessInstructions(HBasicBlock* block, BitVector* live) {
for (UseIterator it(instr); !it.Done(); it.Advance()) {
LOperand* input = it.Current();
+ if (input == NULL) continue;
LifetimePosition use_pos;
if (input->IsUnallocated() &&

Powered by Google App Engine
This is Rietveld 408576698