| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
| (...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 COND_ARGS); | 1261 COND_ARGS); |
| 1262 | 1262 |
| 1263 // Tail call a code stub (jump). | 1263 // Tail call a code stub (jump). |
| 1264 void TailCallStub(CodeStub* stub, COND_ARGS); | 1264 void TailCallStub(CodeStub* stub, COND_ARGS); |
| 1265 | 1265 |
| 1266 #undef COND_ARGS | 1266 #undef COND_ARGS |
| 1267 | 1267 |
| 1268 void CallJSExitStub(CodeStub* stub); | 1268 void CallJSExitStub(CodeStub* stub); |
| 1269 | 1269 |
| 1270 // Call a runtime routine. | 1270 // Call a runtime routine. |
| 1271 void CallRuntime(const Runtime::Function* f, | 1271 void CallRuntime(const Runtime::Function* f, int num_arguments, |
| 1272 int num_arguments, | 1272 SaveFPRegsMode save_doubles = kDontSaveFPRegs, |
| 1273 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1273 BranchDelaySlot bd = PROTECT); |
| 1274 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 1274 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 1275 const Runtime::Function* function = Runtime::FunctionForId(id); | 1275 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 1276 CallRuntime(function, function->nargs, kSaveFPRegs); | 1276 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 1277 } | 1277 } |
| 1278 | 1278 |
| 1279 // Convenience function: Same as above, but takes the fid instead. | 1279 // Convenience function: Same as above, but takes the fid instead. |
| 1280 void CallRuntime(Runtime::FunctionId id, | 1280 void CallRuntime(Runtime::FunctionId id, int num_arguments, |
| 1281 int num_arguments, | 1281 SaveFPRegsMode save_doubles = kDontSaveFPRegs, |
| 1282 SaveFPRegsMode save_doubles = kDontSaveFPRegs) { | 1282 BranchDelaySlot bd = PROTECT) { |
| 1283 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); | 1283 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles, bd); |
| 1284 } | 1284 } |
| 1285 | 1285 |
| 1286 // Convenience function: call an external reference. | 1286 // Convenience function: call an external reference. |
| 1287 void CallExternalReference(const ExternalReference& ext, | 1287 void CallExternalReference(const ExternalReference& ext, |
| 1288 int num_arguments, | 1288 int num_arguments, |
| 1289 BranchDelaySlot bd = PROTECT); | 1289 BranchDelaySlot bd = PROTECT); |
| 1290 | 1290 |
| 1291 // Tail call of a runtime routine (jump). | 1291 // Tail call of a runtime routine (jump). |
| 1292 // Like JumpToExternalReference, but also takes care of passing the number | 1292 // Like JumpToExternalReference, but also takes care of passing the number |
| 1293 // of parameters. | 1293 // of parameters. |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1818 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1819 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1819 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1820 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1820 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1821 #else | 1821 #else |
| 1822 #define ACCESS_MASM(masm) masm-> | 1822 #define ACCESS_MASM(masm) masm-> |
| 1823 #endif | 1823 #endif |
| 1824 | 1824 |
| 1825 } } // namespace v8::internal | 1825 } } // namespace v8::internal |
| 1826 | 1826 |
| 1827 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1827 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |