| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index e0dd80191564c781d957c83043b1e96262ce1be6..d0895c28207d7143a18f3a52e08900d3676df903 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -1076,7 +1076,8 @@ LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* length) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) {
|
| - return DefineAsRegister(new(zone()) LArgumentsElements);
|
| + return DefineAsRegister(new(zone()) LArgumentsElements(
|
| + elems->from_inlined()));
|
| }
|
|
|
|
|
| @@ -2277,8 +2278,8 @@ LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
|
| undefined,
|
| instr->call_kind(),
|
| instr->is_construct());
|
| - if (instr->arguments() != NULL) {
|
| - inner->Bind(instr->arguments(), graph()->GetArgumentsObject());
|
| + if (instr->arguments_var() != NULL) {
|
| + inner->Bind(instr->arguments_var(), graph()->GetArgumentsObject());
|
| }
|
| current_block_->UpdateEnvironment(inner);
|
| chunk_->AddInlinedClosure(instr->closure());
|
| @@ -2287,10 +2288,21 @@ LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
|
| + LInstruction* pop = NULL;
|
| +
|
| + HEnvironment* env = current_block_->last_environment();
|
| +
|
| + if (instr->arguments_pushed()) {
|
| + int argument_count = env->arguments_environment()->parameter_count();
|
| + pop = new(zone()) LDrop(argument_count);
|
| + argument_count_ -= argument_count;
|
| + }
|
| +
|
| HEnvironment* outer = current_block_->last_environment()->
|
| DiscardInlined(false);
|
| current_block_->UpdateEnvironment(outer);
|
| - return NULL;
|
| +
|
| + return pop;
|
| }
|
|
|
|
|
|
|