| 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_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); | 682 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
| 683 } | 683 } |
| 684 | 684 |
| 685 // Convenience function: call an external reference. | 685 // Convenience function: call an external reference. |
| 686 void CallExternalReference(ExternalReference ref, int num_arguments); | 686 void CallExternalReference(ExternalReference ref, int num_arguments); |
| 687 | 687 |
| 688 // Tail call of a runtime routine (jump). | 688 // Tail call of a runtime routine (jump). |
| 689 // Like JumpToExternalReference, but also takes care of passing the number | 689 // Like JumpToExternalReference, but also takes care of passing the number |
| 690 // of parameters. | 690 // of parameters. |
| 691 void TailCallExternalReference(const ExternalReference& ext, | 691 void TailCallExternalReference(const ExternalReference& ext, |
| 692 int num_arguments, int result_size); | 692 int num_arguments); |
| 693 | 693 |
| 694 // Convenience function: tail call a runtime routine (jump). | 694 // Convenience function: tail call a runtime routine (jump). |
| 695 void TailCallRuntime(Runtime::FunctionId fid, int num_arguments, | 695 void TailCallRuntime(Runtime::FunctionId fid, int num_arguments); |
| 696 int result_size); | |
| 697 | 696 |
| 698 // Before calling a C-function from generated code, align arguments on stack. | 697 // Before calling a C-function from generated code, align arguments on stack. |
| 699 // After aligning the frame, arguments must be stored in esp[0], esp[4], | 698 // After aligning the frame, arguments must be stored in esp[0], esp[4], |
| 700 // etc., not pushed. The argument count assumes all arguments are word sized. | 699 // etc., not pushed. The argument count assumes all arguments are word sized. |
| 701 // Some compilers/platforms require the stack to be aligned when calling | 700 // Some compilers/platforms require the stack to be aligned when calling |
| 702 // C++ code. | 701 // C++ code. |
| 703 // Needs a scratch register to do some arithmetic. This register will be | 702 // Needs a scratch register to do some arithmetic. This register will be |
| 704 // trashed. | 703 // trashed. |
| 705 void PrepareCallCFunction(int num_arguments, Register scratch); | 704 void PrepareCallCFunction(int num_arguments, Register scratch); |
| 706 | 705 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 } \ | 1002 } \ |
| 1004 masm-> | 1003 masm-> |
| 1005 #else | 1004 #else |
| 1006 #define ACCESS_MASM(masm) masm-> | 1005 #define ACCESS_MASM(masm) masm-> |
| 1007 #endif | 1006 #endif |
| 1008 | 1007 |
| 1009 } // namespace internal | 1008 } // namespace internal |
| 1010 } // namespace v8 | 1009 } // namespace v8 |
| 1011 | 1010 |
| 1012 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1011 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |