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/arm/interface-descriptors-arm.h" | 5 #include "src/arm/interface-descriptors-arm.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 r2, // holder | 391 r2, // holder |
392 r1, // api_function_address | 392 r1, // api_function_address |
393 }; | 393 }; |
394 data->InitializePlatformSpecific(arraysize(registers), registers, | 394 data->InitializePlatformSpecific(arraysize(registers), registers, |
395 &default_descriptor); | 395 &default_descriptor); |
396 } | 396 } |
397 | 397 |
398 void InterpreterDispatchDescriptor::InitializePlatformSpecific( | 398 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
399 CallInterfaceDescriptorData* data) { | 399 CallInterfaceDescriptorData* data) { |
400 Register registers[] = { | 400 Register registers[] = { |
401 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, | 401 kInterpreterAccumulatorRegister, kInterpreterBytecodeOffsetRegister, |
402 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, | 402 kInterpreterBytecodeArrayRegister, kInterpreterDispatchTableRegister}; |
403 kInterpreterDispatchTableRegister}; | |
404 data->InitializePlatformSpecific(arraysize(registers), registers); | 403 data->InitializePlatformSpecific(arraysize(registers), registers); |
405 } | 404 } |
406 | 405 |
407 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 406 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
408 CallInterfaceDescriptorData* data) { | 407 CallInterfaceDescriptorData* data) { |
409 Register registers[] = { | 408 Register registers[] = { |
410 r0, // argument count (not including receiver) | 409 r0, // argument count (not including receiver) |
411 r2, // address of first argument | 410 r2, // address of first argument |
412 r1 // the target callable to be call | 411 r1 // the target callable to be call |
413 }; | 412 }; |
(...skipping 28 matching lines...) Expand all Loading... |
442 r1, // the JSGeneratorObject to resume | 441 r1, // the JSGeneratorObject to resume |
443 r2 // the resume mode (tagged) | 442 r2 // the resume mode (tagged) |
444 }; | 443 }; |
445 data->InitializePlatformSpecific(arraysize(registers), registers); | 444 data->InitializePlatformSpecific(arraysize(registers), registers); |
446 } | 445 } |
447 | 446 |
448 } // namespace internal | 447 } // namespace internal |
449 } // namespace v8 | 448 } // namespace v8 |
450 | 449 |
451 #endif // V8_TARGET_ARCH_ARM | 450 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |