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 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 void InitializeRootRegister() { | 1010 void InitializeRootRegister() { |
1011 ExternalReference roots_array_start = | 1011 ExternalReference roots_array_start = |
1012 ExternalReference::roots_array_start(isolate()); | 1012 ExternalReference::roots_array_start(isolate()); |
1013 li(kRootRegister, Operand(roots_array_start)); | 1013 li(kRootRegister, Operand(roots_array_start)); |
1014 } | 1014 } |
1015 | 1015 |
1016 // ------------------------------------------------------------------------- | 1016 // ------------------------------------------------------------------------- |
1017 // JavaScript invokes. | 1017 // JavaScript invokes. |
1018 | 1018 |
1019 // Invoke the JavaScript function code by either calling or jumping. | 1019 // Invoke the JavaScript function code by either calling or jumping. |
1020 void InvokeCode(Register code, | 1020 void InvokeFunctionCode(Register function, Register new_target, |
1021 Register new_code, | 1021 const ParameterCount& expected, |
1022 const ParameterCount& expected, | 1022 const ParameterCount& actual, InvokeFlag flag, |
1023 const ParameterCount& actual, | 1023 const CallWrapper& call_wrapper); |
1024 InvokeFlag flag, | |
1025 const CallWrapper& call_wrapper); | |
1026 | 1024 |
1027 // Invoke the JavaScript function in the given register. Changes the | 1025 // Invoke the JavaScript function in the given register. Changes the |
1028 // current context to the context in the function before invoking. | 1026 // current context to the context in the function before invoking. |
1029 void InvokeFunction(Register function, | 1027 void InvokeFunction(Register function, |
1030 Register new_target, | 1028 Register new_target, |
1031 const ParameterCount& actual, | 1029 const ParameterCount& actual, |
1032 InvokeFlag flag, | 1030 InvokeFlag flag, |
1033 const CallWrapper& call_wrapper); | 1031 const CallWrapper& call_wrapper); |
1034 | 1032 |
1035 void InvokeFunction(Register function, | 1033 void InvokeFunction(Register function, |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1755 | 1753 |
1756 | 1754 |
1757 // Helper functions for generating invokes. | 1755 // Helper functions for generating invokes. |
1758 void InvokePrologue(const ParameterCount& expected, | 1756 void InvokePrologue(const ParameterCount& expected, |
1759 const ParameterCount& actual, | 1757 const ParameterCount& actual, |
1760 Label* done, | 1758 Label* done, |
1761 bool* definitely_mismatches, | 1759 bool* definitely_mismatches, |
1762 InvokeFlag flag, | 1760 InvokeFlag flag, |
1763 const CallWrapper& call_wrapper); | 1761 const CallWrapper& call_wrapper); |
1764 | 1762 |
| 1763 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 1764 const ParameterCount& expected, |
| 1765 const ParameterCount& actual); |
| 1766 |
1765 void InitializeNewString(Register string, | 1767 void InitializeNewString(Register string, |
1766 Register length, | 1768 Register length, |
1767 Heap::RootListIndex map_index, | 1769 Heap::RootListIndex map_index, |
1768 Register scratch1, | 1770 Register scratch1, |
1769 Register scratch2); | 1771 Register scratch2); |
1770 | 1772 |
1771 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1773 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
1772 void InNewSpace(Register object, | 1774 void InNewSpace(Register object, |
1773 Register scratch, | 1775 Register scratch, |
1774 Condition cond, // eq for new space, ne otherwise. | 1776 Condition cond, // eq for new space, ne otherwise. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1843 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1845 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1844 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1846 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1845 #else | 1847 #else |
1846 #define ACCESS_MASM(masm) masm-> | 1848 #define ACCESS_MASM(masm) masm-> |
1847 #endif | 1849 #endif |
1848 | 1850 |
1849 } // namespace internal | 1851 } // namespace internal |
1850 } // namespace v8 | 1852 } // namespace v8 |
1851 | 1853 |
1852 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1854 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |