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

Side by Side Diff: src/mips64/interface-descriptors-mips64.cc

Issue 1676883002: [runtime] Optimize and unify rest parameters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 const Register ArgumentsAccessReadDescriptor::index() { return a1; } 57 const Register ArgumentsAccessReadDescriptor::index() { return a1; }
58 const Register ArgumentsAccessReadDescriptor::parameter_count() { return a0; } 58 const Register ArgumentsAccessReadDescriptor::parameter_count() { return a0; }
59 59
60 60
61 const Register ArgumentsAccessNewDescriptor::function() { return a1; } 61 const Register ArgumentsAccessNewDescriptor::function() { return a1; }
62 const Register ArgumentsAccessNewDescriptor::parameter_count() { return a2; } 62 const Register ArgumentsAccessNewDescriptor::parameter_count() { return a2; }
63 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return a3; } 63 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return a3; }
64 64
65 65
66 const Register RestParamAccessDescriptor::parameter_count() { return a2; }
67 const Register RestParamAccessDescriptor::parameter_pointer() { return a3; }
68 const Register RestParamAccessDescriptor::rest_parameter_index() { return a4; }
69
70
71 const Register ApiGetterDescriptor::function_address() { return a2; } 66 const Register ApiGetterDescriptor::function_address() { return a2; }
72 67
73 68
74 const Register MathPowTaggedDescriptor::exponent() { return a2; } 69 const Register MathPowTaggedDescriptor::exponent() { return a2; }
75 70
76 71
77 const Register MathPowIntegerDescriptor::exponent() { 72 const Register MathPowIntegerDescriptor::exponent() {
78 return MathPowTaggedDescriptor::exponent(); 73 return MathPowTaggedDescriptor::exponent();
79 } 74 }
80 75
81 76
82 const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; } 77 const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; }
83 const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; } 78 const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; }
84 79
85 80
86 void FastNewClosureDescriptor::InitializePlatformSpecific( 81 void FastNewClosureDescriptor::InitializePlatformSpecific(
87 CallInterfaceDescriptorData* data) { 82 CallInterfaceDescriptorData* data) {
88 Register registers[] = {a2}; 83 Register registers[] = {a2};
89 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 84 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
90 } 85 }
91 86
92 87
93 void FastNewContextDescriptor::InitializePlatformSpecific( 88 void FastNewContextDescriptor::InitializePlatformSpecific(
94 CallInterfaceDescriptorData* data) { 89 CallInterfaceDescriptorData* data) {
95 Register registers[] = {a1}; 90 Register registers[] = {a1};
96 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 91 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
97 } 92 }
98 93
99 94
95 void FastNewRestParameterDescriptor::InitializePlatformSpecific(
96 CallInterfaceDescriptorData* data) {
97 Register registers[] = {a1};
98 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
99 }
100
101
100 void ToNumberDescriptor::InitializePlatformSpecific( 102 void ToNumberDescriptor::InitializePlatformSpecific(
101 CallInterfaceDescriptorData* data) { 103 CallInterfaceDescriptorData* data) {
102 Register registers[] = {a0}; 104 Register registers[] = {a0};
103 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 105 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
104 } 106 }
105 107
106 108
107 // static 109 // static
108 const Register ToLengthDescriptor::ReceiverRegister() { return a0; } 110 const Register ToLengthDescriptor::ReceiverRegister() { return a0; }
109 111
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 a2, // address of first argument (argv) 437 a2, // address of first argument (argv)
436 a1 // the runtime function to call 438 a1 // the runtime function to call
437 }; 439 };
438 data->InitializePlatformSpecific(arraysize(registers), registers); 440 data->InitializePlatformSpecific(arraysize(registers), registers);
439 } 441 }
440 442
441 } // namespace internal 443 } // namespace internal
442 } // namespace v8 444 } // namespace v8
443 445
444 #endif // V8_TARGET_ARCH_MIPS64 446 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698