| 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 #include "src/arm64/interface-descriptors-arm64.h" | 5 #include "src/arm64/interface-descriptors-arm64.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 x2, // holder | 423 x2, // holder |
| 424 x1, // api_function_address | 424 x1, // api_function_address |
| 425 }; | 425 }; |
| 426 data->InitializePlatformSpecific(arraysize(registers), registers, | 426 data->InitializePlatformSpecific(arraysize(registers), registers, |
| 427 &default_descriptor); | 427 &default_descriptor); |
| 428 } | 428 } |
| 429 | 429 |
| 430 void InterpreterDispatchDescriptor::InitializePlatformSpecific( | 430 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
| 431 CallInterfaceDescriptorData* data) { | 431 CallInterfaceDescriptorData* data) { |
| 432 Register registers[] = { | 432 Register registers[] = { |
| 433 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, | 433 kInterpreterAccumulatorRegister, kInterpreterBytecodeOffsetRegister, |
| 434 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, | 434 kInterpreterBytecodeArrayRegister, kInterpreterDispatchTableRegister}; |
| 435 kInterpreterDispatchTableRegister}; | |
| 436 data->InitializePlatformSpecific(arraysize(registers), registers); | 435 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 437 } | 436 } |
| 438 | 437 |
| 439 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 438 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 440 CallInterfaceDescriptorData* data) { | 439 CallInterfaceDescriptorData* data) { |
| 441 Register registers[] = { | 440 Register registers[] = { |
| 442 x0, // argument count (not including receiver) | 441 x0, // argument count (not including receiver) |
| 443 x2, // address of first argument | 442 x2, // address of first argument |
| 444 x1 // the target callable to be call | 443 x1 // the target callable to be call |
| 445 }; | 444 }; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 474 x1, // the JSGeneratorObject to resume | 473 x1, // the JSGeneratorObject to resume |
| 475 x2 // the resume mode (tagged) | 474 x2 // the resume mode (tagged) |
| 476 }; | 475 }; |
| 477 data->InitializePlatformSpecific(arraysize(registers), registers); | 476 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 478 } | 477 } |
| 479 | 478 |
| 480 } // namespace internal | 479 } // namespace internal |
| 481 } // namespace v8 | 480 } // namespace v8 |
| 482 | 481 |
| 483 #endif // V8_TARGET_ARCH_ARM64 | 482 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |