| 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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 // See comments at the beginning of CEntryStub::Generate. | 1187 // See comments at the beginning of CEntryStub::Generate. |
| 1188 inline void PrepareCEntryArgs(int num_args) { | 1188 inline void PrepareCEntryArgs(int num_args) { |
| 1189 li(s0, num_args); | 1189 li(s0, num_args); |
| 1190 li(s1, (num_args - 1) * kPointerSize); | 1190 li(s1, (num_args - 1) * kPointerSize); |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 inline void PrepareCEntryFunction(const ExternalReference& ref) { | 1193 inline void PrepareCEntryFunction(const ExternalReference& ref) { |
| 1194 li(s2, Operand(ref)); | 1194 li(s2, Operand(ref)); |
| 1195 } | 1195 } |
| 1196 | 1196 |
| 1197 #define COND_ARGS Condition cond = al, Register rs = zero_reg, \ |
| 1198 const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT |
| 1199 |
| 1197 // Call a code stub. | 1200 // Call a code stub. |
| 1198 void CallStub(CodeStub* stub, | 1201 void CallStub(CodeStub* stub, |
| 1199 TypeFeedbackId ast_id = TypeFeedbackId::None(), | 1202 TypeFeedbackId ast_id = TypeFeedbackId::None(), |
| 1200 Condition cond = cc_always, | 1203 COND_ARGS); |
| 1201 Register r1 = zero_reg, | |
| 1202 const Operand& r2 = Operand(zero_reg), | |
| 1203 BranchDelaySlot bd = PROTECT); | |
| 1204 | 1204 |
| 1205 // Tail call a code stub (jump). | 1205 // Tail call a code stub (jump). |
| 1206 void TailCallStub(CodeStub* stub); | 1206 void TailCallStub(CodeStub* stub, COND_ARGS); |
| 1207 |
| 1208 #undef COND_ARGS |
| 1207 | 1209 |
| 1208 void CallJSExitStub(CodeStub* stub); | 1210 void CallJSExitStub(CodeStub* stub); |
| 1209 | 1211 |
| 1210 // Call a runtime routine. | 1212 // Call a runtime routine. |
| 1211 void CallRuntime(const Runtime::Function* f, | 1213 void CallRuntime(const Runtime::Function* f, |
| 1212 int num_arguments, | 1214 int num_arguments, |
| 1213 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1215 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 1214 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 1216 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 1215 const Runtime::Function* function = Runtime::FunctionForId(id); | 1217 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 1216 CallRuntime(function, function->nargs, kSaveFPRegs); | 1218 CallRuntime(function, function->nargs, kSaveFPRegs); |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1697 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1696 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1698 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1697 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1699 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1698 #else | 1700 #else |
| 1699 #define ACCESS_MASM(masm) masm-> | 1701 #define ACCESS_MASM(masm) masm-> |
| 1700 #endif | 1702 #endif |
| 1701 | 1703 |
| 1702 } } // namespace v8::internal | 1704 } } // namespace v8::internal |
| 1703 | 1705 |
| 1704 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1706 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |