Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index f776bf339f5d595e63a9a2633a72f7927efd4e97..980cb2112825a5d2969a1ea024120946efbf3c72 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -2529,8 +2529,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); |