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 1187 matching lines...) Loading... |
1198 // Call a runtime routine. | 1198 // Call a runtime routine. |
1199 void CallRuntime(const Runtime::Function* f, | 1199 void CallRuntime(const Runtime::Function* f, |
1200 int num_arguments, | 1200 int num_arguments, |
1201 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1201 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
1202 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 1202 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
1203 const Runtime::Function* function = Runtime::FunctionForId(id); | 1203 const Runtime::Function* function = Runtime::FunctionForId(id); |
1204 CallRuntime(function, function->nargs, kSaveFPRegs); | 1204 CallRuntime(function, function->nargs, kSaveFPRegs); |
1205 } | 1205 } |
1206 | 1206 |
1207 // Convenience function: Same as above, but takes the fid instead. | 1207 // Convenience function: Same as above, but takes the fid instead. |
1208 void CallRuntime(Runtime::FunctionId id, int num_arguments) { | 1208 void CallRuntime(Runtime::FunctionId id, |
1209 CallRuntime(Runtime::FunctionForId(id), num_arguments); | 1209 int num_arguments, |
| 1210 SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
| 1211 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
1210 } | 1212 } |
1211 | 1213 |
1212 // Convenience function: call an external reference. | 1214 // Convenience function: call an external reference. |
1213 void CallExternalReference(const ExternalReference& ext, | 1215 void CallExternalReference(const ExternalReference& ext, |
1214 int num_arguments, | 1216 int num_arguments, |
1215 BranchDelaySlot bd = PROTECT); | 1217 BranchDelaySlot bd = PROTECT); |
1216 | 1218 |
1217 // Tail call of a runtime routine (jump). | 1219 // Tail call of a runtime routine (jump). |
1218 // Like JumpToExternalReference, but also takes care of passing the number | 1220 // Like JumpToExternalReference, but also takes care of passing the number |
1219 // of parameters. | 1221 // of parameters. |
(...skipping 441 matching lines...) Loading... |
1661 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1663 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1662 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1664 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1663 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1665 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1664 #else | 1666 #else |
1665 #define ACCESS_MASM(masm) masm-> | 1667 #define ACCESS_MASM(masm) masm-> |
1666 #endif | 1668 #endif |
1667 | 1669 |
1668 } } // namespace v8::internal | 1670 } } // namespace v8::internal |
1669 | 1671 |
1670 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1672 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |