Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index 28ed7fb1230c4673ce9e4081808fbcb1a6b74b5b..03dddd943cf70f398f5d39cd6366777dd5e0c4f3 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -3019,44 +3019,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 rdx and the formal |
- // parameter count in rax. |
- VisitForAccumulatorValue(args->at(0)); |
- __ movp(rdx, rax); |
- __ Move(rax, Smi::FromInt(info_->scope()->num_parameters())); |
- ArgumentsAccessStub stub(isolate(), ArgumentsAccessStub::READ_ELEMENT); |
- __ CallStub(&stub); |
- context()->Plug(rax); |
-} |
- |
- |
-void FullCodeGenerator::EmitArgumentsLength(CallRuntime* expr) { |
- DCHECK(expr->arguments()->length() == 0); |
- |
- Label exit; |
- // Get the number of formal parameters. |
- __ Move(rax, Smi::FromInt(info_->scope()->num_parameters())); |
- |
- // Check if the calling frame is an arguments adaptor frame. |
- __ movp(rbx, Operand(rbp, StandardFrameConstants::kCallerFPOffset)); |
- __ Cmp(Operand(rbx, StandardFrameConstants::kContextOffset), |
- Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); |
- __ j(not_equal, &exit, Label::kNear); |
- |
- // Arguments adaptor case: Read the arguments length from the |
- // adaptor frame. |
- __ movp(rax, Operand(rbx, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- |
- __ bind(&exit); |
- __ AssertSmi(rax); |
- context()->Plug(rax); |
-} |
- |
- |
void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK(args->length() == 1); |