OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 Register registers[] = {r3}; | 82 Register registers[] = {r3}; |
83 data->InitializePlatformSpecific(arraysize(registers), registers); | 83 data->InitializePlatformSpecific(arraysize(registers), registers); |
84 } | 84 } |
85 | 85 |
86 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( | 86 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( |
87 CallInterfaceDescriptorData* data) { | 87 CallInterfaceDescriptorData* data) { |
88 Register registers[] = {r3}; | 88 Register registers[] = {r3}; |
89 data->InitializePlatformSpecific(arraysize(registers), registers); | 89 data->InitializePlatformSpecific(arraysize(registers), registers); |
90 } | 90 } |
91 | 91 |
92 void ToNumberDescriptor::InitializePlatformSpecific( | |
93 CallInterfaceDescriptorData* data) { | |
94 Register registers[] = {r2}; | |
95 data->InitializePlatformSpecific(arraysize(registers), registers); | |
96 } | |
97 | |
98 // static | 92 // static |
99 const Register ToLengthDescriptor::ReceiverRegister() { return r2; } | 93 const Register TypeConversionDescriptor::ArgumentRegister() { return r2; } |
100 | |
101 // static | |
102 const Register ToStringDescriptor::ReceiverRegister() { return r2; } | |
103 | |
104 // static | |
105 const Register ToNameDescriptor::ReceiverRegister() { return r2; } | |
106 | |
107 // static | |
108 const Register ToObjectDescriptor::ReceiverRegister() { return r2; } | |
109 | |
110 void NumberToStringDescriptor::InitializePlatformSpecific( | |
111 CallInterfaceDescriptorData* data) { | |
112 Register registers[] = {r2}; | |
113 data->InitializePlatformSpecific(arraysize(registers), registers); | |
114 } | |
115 | 94 |
116 void TypeofDescriptor::InitializePlatformSpecific( | 95 void TypeofDescriptor::InitializePlatformSpecific( |
117 CallInterfaceDescriptorData* data) { | 96 CallInterfaceDescriptorData* data) { |
118 Register registers[] = {r5}; | 97 Register registers[] = {r5}; |
119 data->InitializePlatformSpecific(arraysize(registers), registers); | 98 data->InitializePlatformSpecific(arraysize(registers), registers); |
120 } | 99 } |
121 | 100 |
122 void FastCloneRegExpDescriptor::InitializePlatformSpecific( | 101 void FastCloneRegExpDescriptor::InitializePlatformSpecific( |
123 CallInterfaceDescriptorData* data) { | 102 CallInterfaceDescriptorData* data) { |
124 Register registers[] = {r5, r4, r3, r2}; | 103 Register registers[] = {r5, r4, r3, r2}; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 Register registers[] = {r3, r2}; | 241 Register registers[] = {r3, r2}; |
263 data->InitializePlatformSpecific(arraysize(registers), registers); | 242 data->InitializePlatformSpecific(arraysize(registers), registers); |
264 } | 243 } |
265 | 244 |
266 void CompareDescriptor::InitializePlatformSpecific( | 245 void CompareDescriptor::InitializePlatformSpecific( |
267 CallInterfaceDescriptorData* data) { | 246 CallInterfaceDescriptorData* data) { |
268 Register registers[] = {r3, r2}; | 247 Register registers[] = {r3, r2}; |
269 data->InitializePlatformSpecific(arraysize(registers), registers); | 248 data->InitializePlatformSpecific(arraysize(registers), registers); |
270 } | 249 } |
271 | 250 |
272 void ToBooleanDescriptor::InitializePlatformSpecific( | |
273 CallInterfaceDescriptorData* data) { | |
274 Register registers[] = {r2}; | |
275 data->InitializePlatformSpecific(arraysize(registers), registers); | |
276 } | |
277 | |
278 void BinaryOpDescriptor::InitializePlatformSpecific( | 251 void BinaryOpDescriptor::InitializePlatformSpecific( |
279 CallInterfaceDescriptorData* data) { | 252 CallInterfaceDescriptorData* data) { |
280 Register registers[] = {r3, r2}; | 253 Register registers[] = {r3, r2}; |
281 data->InitializePlatformSpecific(arraysize(registers), registers); | 254 data->InitializePlatformSpecific(arraysize(registers), registers); |
282 } | 255 } |
283 | 256 |
284 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( | 257 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( |
285 CallInterfaceDescriptorData* data) { | 258 CallInterfaceDescriptorData* data) { |
286 Register registers[] = {r4, r3, r2}; | 259 Register registers[] = {r4, r3, r2}; |
287 data->InitializePlatformSpecific(arraysize(registers), registers); | 260 data->InitializePlatformSpecific(arraysize(registers), registers); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 r4, // address of first argument (argv) | 349 r4, // address of first argument (argv) |
377 r3 // the runtime function to call | 350 r3 // the runtime function to call |
378 }; | 351 }; |
379 data->InitializePlatformSpecific(arraysize(registers), registers); | 352 data->InitializePlatformSpecific(arraysize(registers), registers); |
380 } | 353 } |
381 | 354 |
382 } // namespace internal | 355 } // namespace internal |
383 } // namespace v8 | 356 } // namespace v8 |
384 | 357 |
385 #endif // V8_TARGET_ARCH_S390 | 358 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |