Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 706e031d9f21fd13498974c85220dee0402b935d..885b2e304e3a57b8cb473a02ed61a069379ac017 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -2734,8 +2734,9 @@ LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
undefined, |
instr->inlining_kind(), |
instr->undefined_receiver()); |
- if (instr->arguments_var() != NULL) { |
- inner->Bind(instr->arguments_var(), graph()->GetArgumentsObject()); |
+ // Only replay binding of arguments object if it wasn't removed from graph. |
+ if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
+ inner->Bind(instr->arguments_var(), instr->arguments_object()); |
} |
inner->set_entry(instr); |
current_block_->UpdateEnvironment(inner); |