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 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 | 630 |
631 void InitializeRootRegister() { | 631 void InitializeRootRegister() { |
632 ExternalReference roots_array_start = | 632 ExternalReference roots_array_start = |
633 ExternalReference::roots_array_start(isolate()); | 633 ExternalReference::roots_array_start(isolate()); |
634 mov(kRootRegister, Operand(roots_array_start)); | 634 mov(kRootRegister, Operand(roots_array_start)); |
635 } | 635 } |
636 | 636 |
637 // --------------------------------------------------------------------------- | 637 // --------------------------------------------------------------------------- |
638 // JavaScript invokes | 638 // JavaScript invokes |
639 | 639 |
| 640 // Removes current frame and its arguments from the stack preserving |
| 641 // the arguments and a return address pushed to the stack for the next call. |
| 642 // Both |callee_args_count| and |caller_args_count_reg| do not include |
| 643 // receiver. |callee_args_count| is not modified, |caller_args_count_reg| |
| 644 // is trashed. |
| 645 void PrepareForTailCall(const ParameterCount& callee_args_count, |
| 646 Register caller_args_count_reg, Register scratch0, |
| 647 Register scratch1); |
| 648 |
640 // Invoke the JavaScript function code by either calling or jumping. | 649 // Invoke the JavaScript function code by either calling or jumping. |
641 void InvokeFunctionCode(Register function, Register new_target, | 650 void InvokeFunctionCode(Register function, Register new_target, |
642 const ParameterCount& expected, | 651 const ParameterCount& expected, |
643 const ParameterCount& actual, InvokeFlag flag, | 652 const ParameterCount& actual, InvokeFlag flag, |
644 const CallWrapper& call_wrapper); | 653 const CallWrapper& call_wrapper); |
645 | 654 |
646 void FloodFunctionIfStepping(Register fun, Register new_target, | 655 void FloodFunctionIfStepping(Register fun, Register new_target, |
647 const ParameterCount& expected, | 656 const ParameterCount& expected, |
648 const ParameterCount& actual); | 657 const ParameterCount& actual); |
649 | 658 |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1556 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1548 #else | 1557 #else |
1549 #define ACCESS_MASM(masm) masm-> | 1558 #define ACCESS_MASM(masm) masm-> |
1550 #endif | 1559 #endif |
1551 | 1560 |
1552 | 1561 |
1553 } // namespace internal | 1562 } // namespace internal |
1554 } // namespace v8 | 1563 } // namespace v8 |
1555 | 1564 |
1556 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1565 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |