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/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 // ------------------------------------------------------------------------- | 972 // ------------------------------------------------------------------------- |
973 // JavaScript invokes. | 973 // JavaScript invokes. |
974 | 974 |
975 // Invoke the JavaScript function code by either calling or jumping. | 975 // Invoke the JavaScript function code by either calling or jumping. |
976 | 976 |
977 void InvokeFunctionCode(Register function, Register new_target, | 977 void InvokeFunctionCode(Register function, Register new_target, |
978 const ParameterCount& expected, | 978 const ParameterCount& expected, |
979 const ParameterCount& actual, InvokeFlag flag, | 979 const ParameterCount& actual, InvokeFlag flag, |
980 const CallWrapper& call_wrapper); | 980 const CallWrapper& call_wrapper); |
981 | 981 |
982 void FloodFunctionIfStepping(Register fun, Register new_target, | |
983 const ParameterCount& expected, | |
984 const ParameterCount& actual); | |
985 | |
986 // Invoke the JavaScript function in the given register. Changes the | 982 // Invoke the JavaScript function in the given register. Changes the |
987 // current context to the context in the function before invoking. | 983 // current context to the context in the function before invoking. |
988 void InvokeFunction(Register function, | 984 void InvokeFunction(Register function, |
989 Register new_target, | 985 Register new_target, |
990 const ParameterCount& actual, | 986 const ParameterCount& actual, |
991 InvokeFlag flag, | 987 InvokeFlag flag, |
992 const CallWrapper& call_wrapper); | 988 const CallWrapper& call_wrapper); |
993 | 989 |
994 void InvokeFunction(Register function, | 990 void InvokeFunction(Register function, |
995 const ParameterCount& expected, | 991 const ParameterCount& expected, |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 BranchDelaySlot bd = PROTECT); | 1662 BranchDelaySlot bd = PROTECT); |
1667 | 1663 |
1668 // Helper functions for generating invokes. | 1664 // Helper functions for generating invokes. |
1669 void InvokePrologue(const ParameterCount& expected, | 1665 void InvokePrologue(const ParameterCount& expected, |
1670 const ParameterCount& actual, | 1666 const ParameterCount& actual, |
1671 Label* done, | 1667 Label* done, |
1672 bool* definitely_mismatches, | 1668 bool* definitely_mismatches, |
1673 InvokeFlag flag, | 1669 InvokeFlag flag, |
1674 const CallWrapper& call_wrapper); | 1670 const CallWrapper& call_wrapper); |
1675 | 1671 |
| 1672 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 1673 const ParameterCount& expected, |
| 1674 const ParameterCount& actual); |
| 1675 |
1676 void InitializeNewString(Register string, | 1676 void InitializeNewString(Register string, |
1677 Register length, | 1677 Register length, |
1678 Heap::RootListIndex map_index, | 1678 Heap::RootListIndex map_index, |
1679 Register scratch1, | 1679 Register scratch1, |
1680 Register scratch2); | 1680 Register scratch2); |
1681 | 1681 |
1682 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1682 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
1683 void InNewSpace(Register object, | 1683 void InNewSpace(Register object, |
1684 Register scratch, | 1684 Register scratch, |
1685 Condition cond, // eq for new space, ne otherwise. | 1685 Condition cond, // eq for new space, ne otherwise. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1753 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1753 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1754 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1754 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1755 #else | 1755 #else |
1756 #define ACCESS_MASM(masm) masm-> | 1756 #define ACCESS_MASM(masm) masm-> |
1757 #endif | 1757 #endif |
1758 | 1758 |
1759 } // namespace internal | 1759 } // namespace internal |
1760 } // namespace v8 | 1760 } // namespace v8 |
1761 | 1761 |
1762 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1762 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |