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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 void MovFromFloatParameter(DoubleRegister dst); | 1308 void MovFromFloatParameter(DoubleRegister dst); |
1309 | 1309 |
1310 // There are two ways of passing double arguments on MIPS, depending on | 1310 // There are two ways of passing double arguments on MIPS, depending on |
1311 // whether soft or hard floating point ABI is used. These functions | 1311 // whether soft or hard floating point ABI is used. These functions |
1312 // abstract parameter passing for the three different ways we call | 1312 // abstract parameter passing for the three different ways we call |
1313 // C functions from generated code. | 1313 // C functions from generated code. |
1314 void MovToFloatParameter(DoubleRegister src); | 1314 void MovToFloatParameter(DoubleRegister src); |
1315 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2); | 1315 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2); |
1316 void MovToFloatResult(DoubleRegister src); | 1316 void MovToFloatResult(DoubleRegister src); |
1317 | 1317 |
1318 // Calls an API function. Allocates HandleScope, extracts returned value | |
1319 // from handle and propagates exceptions. Restores context. stack_space | |
1320 // - space to be unwound on exit (includes the call JS arguments space and | |
1321 // the additional space allocated for the fast call). | |
1322 void CallApiFunctionAndReturn(Register function_address, | |
1323 ExternalReference thunk_ref, int stack_space, | |
1324 MemOperand* stack_space_operand, | |
1325 MemOperand return_value_operand, | |
1326 MemOperand* context_restore_operand); | |
1327 | |
1328 // Jump to the builtin routine. | 1318 // Jump to the builtin routine. |
1329 void JumpToExternalReference(const ExternalReference& builtin, | 1319 void JumpToExternalReference(const ExternalReference& builtin, |
1330 BranchDelaySlot bd = PROTECT); | 1320 BranchDelaySlot bd = PROTECT); |
1331 | 1321 |
1332 // Invoke specified builtin JavaScript function. Adds an entry to | 1322 // Invoke specified builtin JavaScript function. Adds an entry to |
1333 // the unresolved list if the name does not resolve. | 1323 // the unresolved list if the name does not resolve. |
1334 void InvokeBuiltin(Builtins::JavaScript id, | 1324 void InvokeBuiltin(Builtins::JavaScript id, |
1335 InvokeFlag flag, | 1325 InvokeFlag flag, |
1336 const CallWrapper& call_wrapper = NullCallWrapper()); | 1326 const CallWrapper& call_wrapper = NullCallWrapper()); |
1337 | 1327 |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1788 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1778 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1789 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1779 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1790 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1780 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1791 #else | 1781 #else |
1792 #define ACCESS_MASM(masm) masm-> | 1782 #define ACCESS_MASM(masm) masm-> |
1793 #endif | 1783 #endif |
1794 | 1784 |
1795 } } // namespace v8::internal | 1785 } } // namespace v8::internal |
1796 | 1786 |
1797 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1787 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |