| 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 // Call a runtime routine. | 766 // Call a runtime routine. |
| 767 void CallRuntime(const Runtime::Function* f, | 767 void CallRuntime(const Runtime::Function* f, |
| 768 int num_arguments, | 768 int num_arguments, |
| 769 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 769 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 770 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 770 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 771 const Runtime::Function* function = Runtime::FunctionForId(id); | 771 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 772 CallRuntime(function, function->nargs, kSaveFPRegs); | 772 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 773 } | 773 } |
| 774 | 774 |
| 775 // Convenience function: Same as above, but takes the fid instead. | 775 // Convenience function: Same as above, but takes the fid instead. |
| 776 void CallRuntime(Runtime::FunctionId id, int num_arguments) { | 776 void CallRuntime(Runtime::FunctionId id, |
| 777 CallRuntime(Runtime::FunctionForId(id), num_arguments); | 777 int num_arguments, |
| 778 SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
| 779 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
| 778 } | 780 } |
| 779 | 781 |
| 780 // Convenience function: call an external reference. | 782 // Convenience function: call an external reference. |
| 781 void CallExternalReference(ExternalReference ref, int num_arguments); | 783 void CallExternalReference(ExternalReference ref, int num_arguments); |
| 782 | 784 |
| 783 // Tail call of a runtime routine (jump). | 785 // Tail call of a runtime routine (jump). |
| 784 // Like JumpToExternalReference, but also takes care of passing the number | 786 // Like JumpToExternalReference, but also takes care of passing the number |
| 785 // of parameters. | 787 // of parameters. |
| 786 void TailCallExternalReference(const ExternalReference& ext, | 788 void TailCallExternalReference(const ExternalReference& ext, |
| 787 int num_arguments, | 789 int num_arguments, |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 } \ | 1116 } \ |
| 1115 masm-> | 1117 masm-> |
| 1116 #else | 1118 #else |
| 1117 #define ACCESS_MASM(masm) masm-> | 1119 #define ACCESS_MASM(masm) masm-> |
| 1118 #endif | 1120 #endif |
| 1119 | 1121 |
| 1120 | 1122 |
| 1121 } } // namespace v8::internal | 1123 } } // namespace v8::internal |
| 1122 | 1124 |
| 1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1125 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |