| 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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 | 1027 |
| 1028 // ------------------------------------------------------------------------- | 1028 // ------------------------------------------------------------------------- |
| 1029 // JavaScript invokes. | 1029 // JavaScript invokes. |
| 1030 | 1030 |
| 1031 // Invoke the JavaScript function code by either calling or jumping. | 1031 // Invoke the JavaScript function code by either calling or jumping. |
| 1032 void InvokeFunctionCode(Register function, Register new_target, | 1032 void InvokeFunctionCode(Register function, Register new_target, |
| 1033 const ParameterCount& expected, | 1033 const ParameterCount& expected, |
| 1034 const ParameterCount& actual, InvokeFlag flag, | 1034 const ParameterCount& actual, InvokeFlag flag, |
| 1035 const CallWrapper& call_wrapper); | 1035 const CallWrapper& call_wrapper); |
| 1036 | 1036 |
| 1037 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 1038 const ParameterCount& expected, |
| 1039 const ParameterCount& actual); |
| 1040 |
| 1037 // Invoke the JavaScript function in the given register. Changes the | 1041 // Invoke the JavaScript function in the given register. Changes the |
| 1038 // current context to the context in the function before invoking. | 1042 // current context to the context in the function before invoking. |
| 1039 void InvokeFunction(Register function, | 1043 void InvokeFunction(Register function, |
| 1040 Register new_target, | 1044 Register new_target, |
| 1041 const ParameterCount& actual, | 1045 const ParameterCount& actual, |
| 1042 InvokeFlag flag, | 1046 InvokeFlag flag, |
| 1043 const CallWrapper& call_wrapper); | 1047 const CallWrapper& call_wrapper); |
| 1044 | 1048 |
| 1045 void InvokeFunction(Register function, | 1049 void InvokeFunction(Register function, |
| 1046 const ParameterCount& expected, | 1050 const ParameterCount& expected, |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1758 | 1762 |
| 1759 | 1763 |
| 1760 // Helper functions for generating invokes. | 1764 // Helper functions for generating invokes. |
| 1761 void InvokePrologue(const ParameterCount& expected, | 1765 void InvokePrologue(const ParameterCount& expected, |
| 1762 const ParameterCount& actual, | 1766 const ParameterCount& actual, |
| 1763 Label* done, | 1767 Label* done, |
| 1764 bool* definitely_mismatches, | 1768 bool* definitely_mismatches, |
| 1765 InvokeFlag flag, | 1769 InvokeFlag flag, |
| 1766 const CallWrapper& call_wrapper); | 1770 const CallWrapper& call_wrapper); |
| 1767 | 1771 |
| 1768 void FloodFunctionIfStepping(Register fun, Register new_target, | |
| 1769 const ParameterCount& expected, | |
| 1770 const ParameterCount& actual); | |
| 1771 | |
| 1772 void InitializeNewString(Register string, | 1772 void InitializeNewString(Register string, |
| 1773 Register length, | 1773 Register length, |
| 1774 Heap::RootListIndex map_index, | 1774 Heap::RootListIndex map_index, |
| 1775 Register scratch1, | 1775 Register scratch1, |
| 1776 Register scratch2); | 1776 Register scratch2); |
| 1777 | 1777 |
| 1778 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1778 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
| 1779 void InNewSpace(Register object, | 1779 void InNewSpace(Register object, |
| 1780 Register scratch, | 1780 Register scratch, |
| 1781 Condition cond, // eq for new space, ne otherwise. | 1781 Condition cond, // eq for new space, ne otherwise. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1849 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1850 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1850 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1851 #else | 1851 #else |
| 1852 #define ACCESS_MASM(masm) masm-> | 1852 #define ACCESS_MASM(masm) masm-> |
| 1853 #endif | 1853 #endif |
| 1854 | 1854 |
| 1855 } // namespace internal | 1855 } // namespace internal |
| 1856 } // namespace v8 | 1856 } // namespace v8 |
| 1857 | 1857 |
| 1858 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1858 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |