OLD | NEW |
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 CallInterfaceDescriptorData* data) { | 260 CallInterfaceDescriptorData* data) { |
261 // register state | 261 // register state |
262 // r3 -- number of arguments | 262 // r3 -- number of arguments |
263 // r4 -- function | 263 // r4 -- function |
264 // r5 -- allocation site with elements kind | 264 // r5 -- allocation site with elements kind |
265 Register registers[] = {r4, r5, r3}; | 265 Register registers[] = {r4, r5, r3}; |
266 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 266 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
267 } | 267 } |
268 | 268 |
269 | 269 |
270 void ArrayConstructorDescriptor::InitializePlatformSpecific( | 270 void ArrayNArgumentsConstructorDescriptor::InitializePlatformSpecific( |
271 CallInterfaceDescriptorData* data) { | 271 CallInterfaceDescriptorData* data) { |
272 // stack param count needs (constructor pointer, and single argument) | 272 // stack param count needs (constructor pointer, and single argument) |
273 Register registers[] = {r4, r5, r3}; | 273 Register registers[] = {r4, r5, r3}; |
274 data->InitializePlatformSpecific(arraysize(registers), registers); | 274 data->InitializePlatformSpecific(arraysize(registers), registers); |
275 } | 275 } |
276 | 276 |
277 | 277 |
278 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( | |
279 CallInterfaceDescriptorData* data) { | |
280 // stack param count needs (constructor pointer, and single argument) | |
281 Register registers[] = {r4, r3}; | |
282 data->InitializePlatformSpecific(arraysize(registers), registers); | |
283 } | |
284 | |
285 void VarArgFunctionDescriptor::InitializePlatformSpecific( | 278 void VarArgFunctionDescriptor::InitializePlatformSpecific( |
286 CallInterfaceDescriptorData* data) { | 279 CallInterfaceDescriptorData* data) { |
287 // stack param count needs (arg count) | 280 // stack param count needs (arg count) |
288 Register registers[] = {r3}; | 281 Register registers[] = {r3}; |
289 data->InitializePlatformSpecific(arraysize(registers), registers); | 282 data->InitializePlatformSpecific(arraysize(registers), registers); |
290 } | 283 } |
291 | 284 |
292 void CompareDescriptor::InitializePlatformSpecific( | 285 void CompareDescriptor::InitializePlatformSpecific( |
293 CallInterfaceDescriptorData* data) { | 286 CallInterfaceDescriptorData* data) { |
294 Register registers[] = {r4, r3}; | 287 Register registers[] = {r4, r3}; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 r3, // the value to pass to the generator | 409 r3, // the value to pass to the generator |
417 r4, // the JSGeneratorObject to resume | 410 r4, // the JSGeneratorObject to resume |
418 r5 // the resume mode (tagged) | 411 r5 // the resume mode (tagged) |
419 }; | 412 }; |
420 data->InitializePlatformSpecific(arraysize(registers), registers); | 413 data->InitializePlatformSpecific(arraysize(registers), registers); |
421 } | 414 } |
422 } // namespace internal | 415 } // namespace internal |
423 } // namespace v8 | 416 } // namespace v8 |
424 | 417 |
425 #endif // V8_TARGET_ARCH_PPC | 418 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |