| 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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
| 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); | 671 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
| 672 } | 672 } |
| 673 | 673 |
| 674 // Convenience function: call an external reference. | 674 // Convenience function: call an external reference. |
| 675 void CallExternalReference(ExternalReference ref, int num_arguments); | 675 void CallExternalReference(ExternalReference ref, int num_arguments); |
| 676 | 676 |
| 677 // Tail call of a runtime routine (jump). | 677 // Tail call of a runtime routine (jump). |
| 678 // Like JumpToExternalReference, but also takes care of passing the number | 678 // Like JumpToExternalReference, but also takes care of passing the number |
| 679 // of parameters. | 679 // of parameters. |
| 680 void TailCallExternalReference(const ExternalReference& ext, | 680 void TailCallExternalReference(const ExternalReference& ext, |
| 681 int num_arguments, int result_size); | 681 int num_arguments); |
| 682 | 682 |
| 683 // Convenience function: tail call a runtime routine (jump). | 683 // Convenience function: tail call a runtime routine (jump). |
| 684 void TailCallRuntime(Runtime::FunctionId fid, int num_arguments, | 684 void TailCallRuntime(Runtime::FunctionId fid, int num_arguments); |
| 685 int result_size); | |
| 686 | 685 |
| 687 // Before calling a C-function from generated code, align arguments on stack. | 686 // Before calling a C-function from generated code, align arguments on stack. |
| 688 // After aligning the frame, arguments must be stored in esp[0], esp[4], | 687 // After aligning the frame, arguments must be stored in esp[0], esp[4], |
| 689 // etc., not pushed. The argument count assumes all arguments are word sized. | 688 // etc., not pushed. The argument count assumes all arguments are word sized. |
| 690 // Some compilers/platforms require the stack to be aligned when calling | 689 // Some compilers/platforms require the stack to be aligned when calling |
| 691 // C++ code. | 690 // C++ code. |
| 692 // Needs a scratch register to do some arithmetic. This register will be | 691 // Needs a scratch register to do some arithmetic. This register will be |
| 693 // trashed. | 692 // trashed. |
| 694 void PrepareCallCFunction(int num_arguments, Register scratch); | 693 void PrepareCallCFunction(int num_arguments, Register scratch); |
| 695 | 694 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 } \ | 982 } \ |
| 984 masm-> | 983 masm-> |
| 985 #else | 984 #else |
| 986 #define ACCESS_MASM(masm) masm-> | 985 #define ACCESS_MASM(masm) masm-> |
| 987 #endif | 986 #endif |
| 988 | 987 |
| 989 } // namespace internal | 988 } // namespace internal |
| 990 } // namespace v8 | 989 } // namespace v8 |
| 991 | 990 |
| 992 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 991 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
| OLD | NEW |