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 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 Register r1 = zero_reg, | 1194 Register r1 = zero_reg, |
1195 const Operand& r2 = Operand(zero_reg), | 1195 const Operand& r2 = Operand(zero_reg), |
1196 BranchDelaySlot bd = PROTECT); | 1196 BranchDelaySlot bd = PROTECT); |
1197 | 1197 |
1198 // Tail call a code stub (jump). | 1198 // Tail call a code stub (jump). |
1199 void TailCallStub(CodeStub* stub); | 1199 void TailCallStub(CodeStub* stub); |
1200 | 1200 |
1201 void CallJSExitStub(CodeStub* stub); | 1201 void CallJSExitStub(CodeStub* stub); |
1202 | 1202 |
1203 // Call a runtime routine. | 1203 // Call a runtime routine. |
1204 void CallRuntime(const Runtime::Function* f, int num_arguments); | 1204 void CallRuntime(const Runtime::Function* f, |
1205 void CallRuntimeSaveDoubles(Runtime::FunctionId id); | 1205 int num_arguments, |
| 1206 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 1207 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 1208 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 1209 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 1210 } |
1206 | 1211 |
1207 // Convenience function: Same as above, but takes the fid instead. | 1212 // Convenience function: Same as above, but takes the fid instead. |
1208 void CallRuntime(Runtime::FunctionId fid, int num_arguments); | 1213 void CallRuntime(Runtime::FunctionId id, int num_arguments) { |
| 1214 CallRuntime(Runtime::FunctionForId(id), num_arguments); |
| 1215 } |
1209 | 1216 |
1210 // Convenience function: call an external reference. | 1217 // Convenience function: call an external reference. |
1211 void CallExternalReference(const ExternalReference& ext, | 1218 void CallExternalReference(const ExternalReference& ext, |
1212 int num_arguments, | 1219 int num_arguments, |
1213 BranchDelaySlot bd = PROTECT); | 1220 BranchDelaySlot bd = PROTECT); |
1214 | 1221 |
1215 // Tail call of a runtime routine (jump). | 1222 // Tail call of a runtime routine (jump). |
1216 // Like JumpToExternalReference, but also takes care of passing the number | 1223 // Like JumpToExternalReference, but also takes care of passing the number |
1217 // of parameters. | 1224 // of parameters. |
1218 void TailCallExternalReference(const ExternalReference& ext, | 1225 void TailCallExternalReference(const ExternalReference& ext, |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1642 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1636 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1643 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1637 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1644 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1638 #else | 1645 #else |
1639 #define ACCESS_MASM(masm) masm-> | 1646 #define ACCESS_MASM(masm) masm-> |
1640 #endif | 1647 #endif |
1641 | 1648 |
1642 } } // namespace v8::internal | 1649 } } // namespace v8::internal |
1643 | 1650 |
1644 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1651 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |