Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: src/full-codegen/arm/full-codegen-arm.cc

Issue 1556913002: Use register arguments for RestParamAccessStub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/arm/full-codegen-arm.cc
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc
index a928289c61d6d728d02e62fcf3144615cc201c28..e06212dcb17a0087ef1dab523034c19aed702849 100644
--- a/src/full-codegen/arm/full-codegen-arm.cc
+++ b/src/full-codegen/arm/full-codegen-arm.cc
@@ -268,11 +268,15 @@ void FullCodeGenerator::Generate() {
int num_parameters = info->scope()->num_parameters();
int offset = num_parameters * kPointerSize;
- __ add(r3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset));
- __ mov(r2, Operand(Smi::FromInt(num_parameters)));
- __ mov(r1, Operand(Smi::FromInt(rest_index)));
- __ mov(r0, Operand(Smi::FromInt(language_mode())));
- __ Push(r3, r2, r1, r0);
+ __ mov(RestParamAccessDescriptor::parameter_count(),
+ Operand(Smi::FromInt(num_parameters)));
+ __ add(RestParamAccessDescriptor::parameter_pointer(), fp,
+ Operand(StandardFrameConstants::kCallerSPOffset + offset));
+ __ mov(RestParamAccessDescriptor::rest_parameter_index(),
+ Operand(Smi::FromInt(rest_index)));
+ __ mov(RestParamAccessDescriptor::language_mode(),
+ Operand(Smi::FromInt(language_mode())));
+ DCHECK(r1.is(RestParamAccessDescriptor::language_mode()));
function_in_register_r1 = false;
RestParamAccessStub stub(isolate());
« no previous file with comments | « src/code-stubs.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698