Rollback of r11118, r11109 in trunk branch.
MIPS: Support arguments object access from inlined functions.
Support arguments object access from inlined functions.
R=jkummerow@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9838059
git-svn-id: http://v8.googlecode.com/svn/trunk@11129 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
index dca90a1..1e0c216 100644
--- a/src/mips/lithium-mips.cc
+++ b/src/mips/lithium-mips.cc
@@ -1076,8 +1076,7 @@
LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) {
- return DefineAsRegister(new(zone()) LArgumentsElements(
- current_block_->last_environment()->outer() != NULL));
+ return DefineAsRegister(new(zone()) LArgumentsElements);
}
@@ -2278,9 +2277,6 @@
undefined,
instr->call_kind(),
instr->is_construct());
- if (instr->materializes_arguments()) {
- inner->Bind(instr->arguments(), graph()->GetArgumentsObject());
- }
current_block_->UpdateEnvironment(inner);
chunk_->AddInlinedClosure(instr->closure());
return NULL;
@@ -2288,21 +2284,10 @@
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()) LPop(argument_count);
- argument_count_ -= argument_count;
- }
-
HEnvironment* outer = current_block_->last_environment()->
DiscardInlined(false);
current_block_->UpdateEnvironment(outer);
-
- return pop;
+ return NULL;
}