Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 17cc6a4de78ec49f083195694f034b06da3f3579..8a414d24f38d981b78c0338b320979176719654f 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -3033,44 +3033,6 @@ void FullCodeGenerator::EmitObjectEquals(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitArguments(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- DCHECK(args->length() == 1); |
- |
- // ArgumentsAccessStub expects the key in edx and the formal |
- // parameter count in eax. |
- VisitForAccumulatorValue(args->at(0)); |
- __ mov(edx, eax); |
- __ Move(eax, Immediate(Smi::FromInt(info_->scope()->num_parameters()))); |
- ArgumentsAccessStub stub(isolate(), ArgumentsAccessStub::READ_ELEMENT); |
- __ CallStub(&stub); |
- context()->Plug(eax); |
-} |
- |
- |
-void FullCodeGenerator::EmitArgumentsLength(CallRuntime* expr) { |
- DCHECK(expr->arguments()->length() == 0); |
- |
- Label exit; |
- // Get the number of formal parameters. |
- __ Move(eax, Immediate(Smi::FromInt(info_->scope()->num_parameters()))); |
- |
- // Check if the calling frame is an arguments adaptor frame. |
- __ mov(ebx, Operand(ebp, StandardFrameConstants::kCallerFPOffset)); |
- __ cmp(Operand(ebx, StandardFrameConstants::kContextOffset), |
- Immediate(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
- __ j(not_equal, &exit); |
- |
- // Arguments adaptor case: Read the arguments length from the |
- // adaptor frame. |
- __ mov(eax, Operand(ebx, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- |
- __ bind(&exit); |
- __ AssertSmi(eax); |
- context()->Plug(eax); |
-} |
- |
- |
void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK(args->length() == 1); |