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

Unified Diff: src/full-codegen/x64/full-codegen-x64.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/mips64/full-codegen-mips64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6c4ffc056337c3adb560ed162af5f05c5d78fe5f..d826b09111b98e348fdb48d8c630d8c355ad5300 100644
--- a/src/full-codegen/x64/full-codegen-x64.cc
+++ b/src/full-codegen/x64/full-codegen-x64.cc
@@ -258,12 +258,14 @@ void FullCodeGenerator::Generate() {
int num_parameters = info->scope()->num_parameters();
int offset = num_parameters * kPointerSize;
- __ leap(rdx,
+ __ Move(RestParamAccessDescriptor::parameter_count(),
+ Smi::FromInt(num_parameters));
+ __ leap(RestParamAccessDescriptor::parameter_pointer(),
Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset));
- __ Push(rdx);
- __ Push(Smi::FromInt(num_parameters));
- __ Push(Smi::FromInt(rest_index));
- __ Push(Smi::FromInt(language_mode()));
+ __ Move(RestParamAccessDescriptor::rest_parameter_index(),
+ Smi::FromInt(rest_index));
+ __ Move(RestParamAccessDescriptor::language_mode(),
+ Smi::FromInt(language_mode()));
function_in_register = false;
RestParamAccessStub stub(isolate());
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698