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

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

Issue 1677223002: PPC: [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
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 r4; } 57 const Register ArgumentsAccessReadDescriptor::index() { return r4; }
58 const Register ArgumentsAccessReadDescriptor::parameter_count() { return r3; } 58 const Register ArgumentsAccessReadDescriptor::parameter_count() { return r3; }
59 59
60 60
61 const Register ArgumentsAccessNewDescriptor::function() { return r4; } 61 const Register ArgumentsAccessNewDescriptor::function() { return r4; }
62 const Register ArgumentsAccessNewDescriptor::parameter_count() { return r5; } 62 const Register ArgumentsAccessNewDescriptor::parameter_count() { return r5; }
63 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return r6; } 63 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return r6; }
64 64
65 65
66 const Register RestParamAccessDescriptor::parameter_count() { return r5; }
67 const Register RestParamAccessDescriptor::parameter_pointer() { return r6; }
68 const Register RestParamAccessDescriptor::rest_parameter_index() { return r7; }
69
70
71 const Register ApiGetterDescriptor::function_address() { return r5; } 66 const Register ApiGetterDescriptor::function_address() { return r5; }
72 67
73 68
74 const Register MathPowTaggedDescriptor::exponent() { return r5; } 69 const Register MathPowTaggedDescriptor::exponent() { return r5; }
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 r3; } 77 const Register GrowArrayElementsDescriptor::ObjectRegister() { return r3; }
83 const Register GrowArrayElementsDescriptor::KeyRegister() { return r6; } 78 const Register GrowArrayElementsDescriptor::KeyRegister() { return r6; }
84 79
85 80
86 void FastNewClosureDescriptor::InitializePlatformSpecific( 81 void FastNewClosureDescriptor::InitializePlatformSpecific(
87 CallInterfaceDescriptorData* data) { 82 CallInterfaceDescriptorData* data) {
88 Register registers[] = {r5}; 83 Register registers[] = {r5};
89 data->InitializePlatformSpecific(arraysize(registers), registers); 84 data->InitializePlatformSpecific(arraysize(registers), registers);
90 } 85 }
91 86
92 87
93 void FastNewContextDescriptor::InitializePlatformSpecific( 88 void FastNewContextDescriptor::InitializePlatformSpecific(
94 CallInterfaceDescriptorData* data) { 89 CallInterfaceDescriptorData* data) {
95 Register registers[] = {r4}; 90 Register registers[] = {r4};
96 data->InitializePlatformSpecific(arraysize(registers), registers); 91 data->InitializePlatformSpecific(arraysize(registers), registers);
97 } 92 }
98 93
94 void FastNewRestParameterDescriptor::InitializePlatformSpecific(
95 CallInterfaceDescriptorData* data) {
96 Register registers[] = {r4};
97 data->InitializePlatformSpecific(arraysize(registers), registers);
98 }
99
99 100
100 void ToNumberDescriptor::InitializePlatformSpecific( 101 void ToNumberDescriptor::InitializePlatformSpecific(
101 CallInterfaceDescriptorData* data) { 102 CallInterfaceDescriptorData* data) {
102 Register registers[] = {r3}; 103 Register registers[] = {r3};
103 data->InitializePlatformSpecific(arraysize(registers), registers); 104 data->InitializePlatformSpecific(arraysize(registers), registers);
104 } 105 }
105 106
106 107
107 // static 108 // static
108 const Register ToLengthDescriptor::ReceiverRegister() { return r3; } 109 const Register ToLengthDescriptor::ReceiverRegister() { return r3; }
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 r3, // argument count (argc) 434 r3, // argument count (argc)
434 r5, // address of first argument (argv) 435 r5, // address of first argument (argv)
435 r4 // the runtime function to call 436 r4 // the runtime function to call
436 }; 437 };
437 data->InitializePlatformSpecific(arraysize(registers), registers); 438 data->InitializePlatformSpecific(arraysize(registers), registers);
438 } 439 }
439 } // namespace internal 440 } // namespace internal
440 } // namespace v8 441 } // namespace v8
441 442
442 #endif // V8_TARGET_ARCH_PPC 443 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698