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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 CallInterfaceDescriptorData* data) { | 327 CallInterfaceDescriptorData* data) { |
328 Register registers[] = { | 328 Register registers[] = { |
329 r3, // JSFunction | 329 r3, // JSFunction |
330 r5, // the new target | 330 r5, // the new target |
331 r2, // actual number of arguments | 331 r2, // actual number of arguments |
332 r4, // expected number of arguments | 332 r4, // expected number of arguments |
333 }; | 333 }; |
334 data->InitializePlatformSpecific(arraysize(registers), registers); | 334 data->InitializePlatformSpecific(arraysize(registers), registers); |
335 } | 335 } |
336 | 336 |
337 void ApiCallbackDescriptorBase::InitializePlatformSpecific( | 337 void ApiFunctionDescriptor::InitializePlatformSpecific( |
| 338 CallInterfaceDescriptorData* data) { |
| 339 Register registers[] = { |
| 340 r2, // callee |
| 341 r6, // call_data |
| 342 r4, // holder |
| 343 r3, // api_function_address |
| 344 r5, // actual number of arguments |
| 345 }; |
| 346 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 347 } |
| 348 |
| 349 void ApiAccessorDescriptor::InitializePlatformSpecific( |
338 CallInterfaceDescriptorData* data) { | 350 CallInterfaceDescriptorData* data) { |
339 Register registers[] = { | 351 Register registers[] = { |
340 r2, // callee | 352 r2, // callee |
341 r6, // call_data | 353 r6, // call_data |
342 r4, // holder | 354 r4, // holder |
343 r3, // api_function_address | 355 r3, // api_function_address |
344 }; | 356 }; |
345 data->InitializePlatformSpecific(arraysize(registers), registers); | 357 data->InitializePlatformSpecific(arraysize(registers), registers); |
346 } | 358 } |
347 | 359 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 r4, // address of first argument (argv) | 394 r4, // address of first argument (argv) |
383 r3 // the runtime function to call | 395 r3 // the runtime function to call |
384 }; | 396 }; |
385 data->InitializePlatformSpecific(arraysize(registers), registers); | 397 data->InitializePlatformSpecific(arraysize(registers), registers); |
386 } | 398 } |
387 | 399 |
388 } // namespace internal | 400 } // namespace internal |
389 } // namespace v8 | 401 } // namespace v8 |
390 | 402 |
391 #endif // V8_TARGET_ARCH_S390 | 403 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |