Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 84aa2a61dd7f0faf93de0a4fdbacdc8a9f2d2ed4..b421f8a045204126c48babca9592b147b001f15f 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -2592,8 +2592,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); |