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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 }; | 396 }; |
397 data->InitializePlatformSpecific(arraysize(registers), registers); | 397 data->InitializePlatformSpecific(arraysize(registers), registers); |
398 } | 398 } |
399 | 399 |
400 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 400 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
401 CallInterfaceDescriptorData* data) { | 401 CallInterfaceDescriptorData* data) { |
402 Register registers[] = { | 402 Register registers[] = { |
403 r0, // argument count (not including receiver) | 403 r0, // argument count (not including receiver) |
404 r3, // new target | 404 r3, // new target |
405 r1, // constructor to call | 405 r1, // constructor to call |
406 r2 // address of the first argument | 406 r2, // allocation site feedback if available, undefined otherwise |
| 407 r4 // address of the first argument |
407 }; | 408 }; |
408 data->InitializePlatformSpecific(arraysize(registers), registers); | 409 data->InitializePlatformSpecific(arraysize(registers), registers); |
409 } | 410 } |
410 | 411 |
411 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 412 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
412 CallInterfaceDescriptorData* data) { | 413 CallInterfaceDescriptorData* data) { |
413 Register registers[] = { | 414 Register registers[] = { |
414 r0, // argument count (argc) | 415 r0, // argument count (argc) |
415 r2, // address of first argument (argv) | 416 r2, // address of first argument (argv) |
416 r1 // the runtime function to call | 417 r1 // the runtime function to call |
417 }; | 418 }; |
418 data->InitializePlatformSpecific(arraysize(registers), registers); | 419 data->InitializePlatformSpecific(arraysize(registers), registers); |
419 } | 420 } |
420 | 421 |
421 void ResumeGeneratorDescriptor::InitializePlatformSpecific( | 422 void ResumeGeneratorDescriptor::InitializePlatformSpecific( |
422 CallInterfaceDescriptorData* data) { | 423 CallInterfaceDescriptorData* data) { |
423 Register registers[] = { | 424 Register registers[] = { |
424 r0, // the value to pass to the generator | 425 r0, // the value to pass to the generator |
425 r1, // the JSGeneratorObject to resume | 426 r1, // the JSGeneratorObject to resume |
426 r2 // the resume mode (tagged) | 427 r2 // the resume mode (tagged) |
427 }; | 428 }; |
428 data->InitializePlatformSpecific(arraysize(registers), registers); | 429 data->InitializePlatformSpecific(arraysize(registers), registers); |
429 } | 430 } |
430 | 431 |
431 } // namespace internal | 432 } // namespace internal |
432 } // namespace v8 | 433 } // namespace v8 |
433 | 434 |
434 #endif // V8_TARGET_ARCH_ARM | 435 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |