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

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

Issue 1823523002: [stubs] Unify the type conversion call interface descriptors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/mips64/interface-descriptors-mips64.cc ('k') | src/s390/interface-descriptors-s390.cc » ('j') | 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 Register registers[] = {r4}; 99 Register registers[] = {r4};
100 data->InitializePlatformSpecific(arraysize(registers), registers); 100 data->InitializePlatformSpecific(arraysize(registers), registers);
101 } 101 }
102 102
103 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( 103 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific(
104 CallInterfaceDescriptorData* data) { 104 CallInterfaceDescriptorData* data) {
105 Register registers[] = {r4}; 105 Register registers[] = {r4};
106 data->InitializePlatformSpecific(arraysize(registers), registers); 106 data->InitializePlatformSpecific(arraysize(registers), registers);
107 } 107 }
108 108
109 void ToNumberDescriptor::InitializePlatformSpecific(
110 CallInterfaceDescriptorData* data) {
111 Register registers[] = {r3};
112 data->InitializePlatformSpecific(arraysize(registers), registers);
113 }
114
115 109
116 // static 110 // static
117 const Register ToLengthDescriptor::ReceiverRegister() { return r3; } 111 const Register TypeConversionDescriptor::ArgumentRegister() { return r3; }
118
119
120 // static
121 const Register ToStringDescriptor::ReceiverRegister() { return r3; }
122
123
124 // static
125 const Register ToNameDescriptor::ReceiverRegister() { return r3; }
126
127
128 // static
129 const Register ToObjectDescriptor::ReceiverRegister() { return r3; }
130
131
132 void NumberToStringDescriptor::InitializePlatformSpecific(
133 CallInterfaceDescriptorData* data) {
134 Register registers[] = {r3};
135 data->InitializePlatformSpecific(arraysize(registers), registers);
136 }
137
138 112
139 void TypeofDescriptor::InitializePlatformSpecific( 113 void TypeofDescriptor::InitializePlatformSpecific(
140 CallInterfaceDescriptorData* data) { 114 CallInterfaceDescriptorData* data) {
141 Register registers[] = {r6}; 115 Register registers[] = {r6};
142 data->InitializePlatformSpecific(arraysize(registers), registers); 116 data->InitializePlatformSpecific(arraysize(registers), registers);
143 } 117 }
144 118
145 119
146 void FastCloneRegExpDescriptor::InitializePlatformSpecific( 120 void FastCloneRegExpDescriptor::InitializePlatformSpecific(
147 CallInterfaceDescriptorData* data) { 121 CallInterfaceDescriptorData* data) {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 } 281 }
308 282
309 283
310 void CompareDescriptor::InitializePlatformSpecific( 284 void CompareDescriptor::InitializePlatformSpecific(
311 CallInterfaceDescriptorData* data) { 285 CallInterfaceDescriptorData* data) {
312 Register registers[] = {r4, r3}; 286 Register registers[] = {r4, r3};
313 data->InitializePlatformSpecific(arraysize(registers), registers); 287 data->InitializePlatformSpecific(arraysize(registers), registers);
314 } 288 }
315 289
316 290
317 void ToBooleanDescriptor::InitializePlatformSpecific(
318 CallInterfaceDescriptorData* data) {
319 Register registers[] = {r3};
320 data->InitializePlatformSpecific(arraysize(registers), registers);
321 }
322
323
324 void BinaryOpDescriptor::InitializePlatformSpecific( 291 void BinaryOpDescriptor::InitializePlatformSpecific(
325 CallInterfaceDescriptorData* data) { 292 CallInterfaceDescriptorData* data) {
326 Register registers[] = {r4, r3}; 293 Register registers[] = {r4, r3};
327 data->InitializePlatformSpecific(arraysize(registers), registers); 294 data->InitializePlatformSpecific(arraysize(registers), registers);
328 } 295 }
329 296
330 297
331 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( 298 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific(
332 CallInterfaceDescriptorData* data) { 299 CallInterfaceDescriptorData* data) {
333 Register registers[] = {r5, r4, r3}; 300 Register registers[] = {r5, r4, r3};
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 r3, // argument count (argc) 394 r3, // argument count (argc)
428 r5, // address of first argument (argv) 395 r5, // address of first argument (argv)
429 r4 // the runtime function to call 396 r4 // the runtime function to call
430 }; 397 };
431 data->InitializePlatformSpecific(arraysize(registers), registers); 398 data->InitializePlatformSpecific(arraysize(registers), registers);
432 } 399 }
433 } // namespace internal 400 } // namespace internal
434 } // namespace v8 401 } // namespace v8
435 402
436 #endif // V8_TARGET_ARCH_PPC 403 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/s390/interface-descriptors-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698