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

Unified Diff: src/full-codegen/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/mips64/full-codegen-mips64.cc
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
index a0a2f693047cdc7ba44c78481ba8eac1c5263b82..9b1350872f4e2d0119f9b8286b86b8db3fc8ea26 100644
--- a/src/full-codegen/mips64/full-codegen-mips64.cc
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc
@@ -276,11 +276,15 @@ void FullCodeGenerator::Generate() {
int num_parameters = info->scope()->num_parameters();
int offset = num_parameters * kPointerSize;
- __ Daddu(a3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset));
- __ li(a2, Operand(Smi::FromInt(num_parameters)));
- __ li(a1, Operand(Smi::FromInt(rest_index)));
- __ li(a0, Operand(Smi::FromInt(language_mode())));
- __ Push(a3, a2, a1, a0);
+ __ li(RestParamAccessDescriptor::parameter_count(),
+ Operand(Smi::FromInt(num_parameters)));
+ __ Daddu(RestParamAccessDescriptor::parameter_pointer(), fp,
+ Operand(StandardFrameConstants::kCallerSPOffset + offset));
+ __ li(RestParamAccessDescriptor::rest_parameter_index(),
+ Operand(Smi::FromInt(rest_index)));
+ __ li(RestParamAccessDescriptor::language_mode(),
+ Operand(Smi::FromInt(language_mode())));
+ DCHECK(a1.is(RestParamAccessDescriptor::language_mode()));
function_in_register_a1 = false;
RestParamAccessStub stub(isolate());
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698