| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 CallInterfaceDescriptorData* data) { | 377 CallInterfaceDescriptorData* data) { |
| 378 Register registers[] = { | 378 Register registers[] = { |
| 379 a1, // JSFunction | 379 a1, // JSFunction |
| 380 a3, // the new target | 380 a3, // the new target |
| 381 a0, // actual number of arguments | 381 a0, // actual number of arguments |
| 382 a2, // expected number of arguments | 382 a2, // expected number of arguments |
| 383 }; | 383 }; |
| 384 data->InitializePlatformSpecific(arraysize(registers), registers); | 384 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 385 } | 385 } |
| 386 | 386 |
| 387 void ApiCallbackDescriptorBase::InitializePlatformSpecific( | 387 |
| 388 void ApiFunctionDescriptor::InitializePlatformSpecific( |
| 389 CallInterfaceDescriptorData* data) { |
| 390 Register registers[] = { |
| 391 a0, // callee |
| 392 a4, // call_data |
| 393 a2, // holder |
| 394 a1, // api_function_address |
| 395 a3, // actual number of arguments |
| 396 }; |
| 397 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 398 } |
| 399 |
| 400 |
| 401 void ApiAccessorDescriptor::InitializePlatformSpecific( |
| 388 CallInterfaceDescriptorData* data) { | 402 CallInterfaceDescriptorData* data) { |
| 389 Register registers[] = { | 403 Register registers[] = { |
| 390 a0, // callee | 404 a0, // callee |
| 391 a4, // call_data | 405 a4, // call_data |
| 392 a2, // holder | 406 a2, // holder |
| 393 a1, // api_function_address | 407 a1, // api_function_address |
| 394 }; | 408 }; |
| 395 data->InitializePlatformSpecific(arraysize(registers), registers); | 409 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 396 } | 410 } |
| 397 | 411 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 a2, // address of first argument (argv) | 446 a2, // address of first argument (argv) |
| 433 a1 // the runtime function to call | 447 a1 // the runtime function to call |
| 434 }; | 448 }; |
| 435 data->InitializePlatformSpecific(arraysize(registers), registers); | 449 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 436 } | 450 } |
| 437 | 451 |
| 438 } // namespace internal | 452 } // namespace internal |
| 439 } // namespace v8 | 453 } // namespace v8 |
| 440 | 454 |
| 441 #endif // V8_TARGET_ARCH_MIPS64 | 455 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |