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

Unified Diff: src/full-codegen/arm64/full-codegen-arm64.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/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/arm64/full-codegen-arm64.cc
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
index d38b26cacff6c4c4f9ccbc9552a314fda9919ac0..529e2e8e0ddfc46b33c7b7c8dd4f9ff89cac6630 100644
--- a/src/full-codegen/arm64/full-codegen-arm64.cc
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc
@@ -270,12 +270,16 @@ void FullCodeGenerator::Generate() {
int num_parameters = info->scope()->num_parameters();
int offset = num_parameters * kPointerSize;
+ __ Mov(RestParamAccessDescriptor::parameter_count(),
+ Smi::FromInt(num_parameters));
+ __ Add(RestParamAccessDescriptor::parameter_pointer(), fp,
+ StandardFrameConstants::kCallerSPOffset + offset);
+ __ Mov(RestParamAccessDescriptor::rest_parameter_index(),
+ Smi::FromInt(rest_index));
+ __ Mov(RestParamAccessDescriptor::language_mode(),
+ Smi::FromInt(language_mode()));
+ DCHECK(x1.is(RestParamAccessDescriptor::language_mode()));
- __ Add(x3, fp, StandardFrameConstants::kCallerSPOffset + offset);
- __ Mov(x2, Smi::FromInt(num_parameters));
- __ Mov(x1, Smi::FromInt(rest_index));
- __ Mov(x0, Smi::FromInt(language_mode()));
- __ Push(x3, x2, x1, x0);
function_in_register_x1 = false;
RestParamAccessStub stub(isolate());
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698