Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 9e59ff47e773b6a0e7ca4e817014debb33b489c1..fc10866831041e8090ffaf4e6957606febc7710c 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -260,11 +260,14 @@ void FullCodeGenerator::Generate() { |
int num_parameters = info->scope()->num_parameters(); |
int offset = num_parameters * kPointerSize; |
- __ lea(edx, Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); |
- __ push(edx); |
- __ push(Immediate(Smi::FromInt(num_parameters))); |
- __ push(Immediate(Smi::FromInt(rest_index))); |
- __ push(Immediate(Smi::FromInt(language_mode()))); |
+ __ mov(RestParamAccessDescriptor::parameter_count(), |
+ Immediate(Smi::FromInt(num_parameters))); |
+ __ lea(RestParamAccessDescriptor::parameter_pointer(), |
+ Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); |
+ __ mov(RestParamAccessDescriptor::rest_parameter_index(), |
+ Immediate(Smi::FromInt(rest_index))); |
+ __ mov(RestParamAccessDescriptor::language_mode(), |
+ Immediate(Smi::FromInt(language_mode()))); |
function_in_register = false; |
RestParamAccessStub stub(isolate()); |