OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 // Call a code stub. Generate the code if necessary. | 753 // Call a code stub. Generate the code if necessary. |
754 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None()); | 754 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None()); |
755 | 755 |
756 // Tail call a code stub (jump). Generate the code if necessary. | 756 // Tail call a code stub (jump). Generate the code if necessary. |
757 void TailCallStub(CodeStub* stub); | 757 void TailCallStub(CodeStub* stub); |
758 | 758 |
759 // Return from a code stub after popping its arguments. | 759 // Return from a code stub after popping its arguments. |
760 void StubReturn(int argc); | 760 void StubReturn(int argc); |
761 | 761 |
762 // Call a runtime routine. | 762 // Call a runtime routine. |
763 void CallRuntime(const Runtime::Function* f, int num_arguments); | 763 void CallRuntime(const Runtime::Function* f, |
764 void CallRuntimeSaveDoubles(Runtime::FunctionId id); | 764 int num_arguments, |
| 765 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 766 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 767 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 768 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 769 } |
765 | 770 |
766 // Convenience function: Same as above, but takes the fid instead. | 771 // Convenience function: Same as above, but takes the fid instead. |
767 void CallRuntime(Runtime::FunctionId id, int num_arguments); | 772 void CallRuntime(Runtime::FunctionId id, int num_arguments) { |
| 773 CallRuntime(Runtime::FunctionForId(id), num_arguments); |
| 774 } |
768 | 775 |
769 // Convenience function: call an external reference. | 776 // Convenience function: call an external reference. |
770 void CallExternalReference(ExternalReference ref, int num_arguments); | 777 void CallExternalReference(ExternalReference ref, int num_arguments); |
771 | 778 |
772 // Tail call of a runtime routine (jump). | 779 // Tail call of a runtime routine (jump). |
773 // Like JumpToExternalReference, but also takes care of passing the number | 780 // Like JumpToExternalReference, but also takes care of passing the number |
774 // of parameters. | 781 // of parameters. |
775 void TailCallExternalReference(const ExternalReference& ext, | 782 void TailCallExternalReference(const ExternalReference& ext, |
776 int num_arguments, | 783 int num_arguments, |
777 int result_size); | 784 int result_size); |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 } \ | 1099 } \ |
1093 masm-> | 1100 masm-> |
1094 #else | 1101 #else |
1095 #define ACCESS_MASM(masm) masm-> | 1102 #define ACCESS_MASM(masm) masm-> |
1096 #endif | 1103 #endif |
1097 | 1104 |
1098 | 1105 |
1099 } } // namespace v8::internal | 1106 } } // namespace v8::internal |
1100 | 1107 |
1101 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1108 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |