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