Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 9be600b87ec960dce33ecce9fb50d03ccd572378..14da898eeefbcf6852ce39e1f358cc85f42a55af 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -609,9 +609,8 @@ LInstruction* LChunkBuilder::AssignEnvironment(LInstruction* instr) { |
HEnvironment* hydrogen_env = current_block_->last_environment(); |
int argument_index_accumulator = 0; |
ZoneList<HValue*> objects_to_materialize(0, zone()); |
- instr->set_environment(CreateEnvironment(hydrogen_env, |
- &argument_index_accumulator, |
- &objects_to_materialize)); |
+ instr->set_environment(CreateEnvironment( |
+ hydrogen_env, &argument_index_accumulator, &objects_to_materialize)); |
return instr; |
} |
@@ -2608,6 +2607,7 @@ LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
inner->Bind(instr->arguments_var(), instr->arguments_object()); |
} |
+ inner->BindContext(instr->closure_context()); |
inner->set_entry(instr); |
current_block_->UpdateEnvironment(inner); |
chunk_->AddInlinedClosure(instr->closure()); |