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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 void InitializeRootRegister() { | 963 void InitializeRootRegister() { |
964 ExternalReference roots_array_start = | 964 ExternalReference roots_array_start = |
965 ExternalReference::roots_array_start(isolate()); | 965 ExternalReference::roots_array_start(isolate()); |
966 li(kRootRegister, Operand(roots_array_start)); | 966 li(kRootRegister, Operand(roots_array_start)); |
967 } | 967 } |
968 | 968 |
969 // ------------------------------------------------------------------------- | 969 // ------------------------------------------------------------------------- |
970 // JavaScript invokes. | 970 // JavaScript invokes. |
971 | 971 |
972 // Invoke the JavaScript function code by either calling or jumping. | 972 // Invoke the JavaScript function code by either calling or jumping. |
973 void InvokeCode(Register code, | 973 |
974 Register new_target, | 974 void InvokeFunctionCode(Register function, Register new_target, |
975 const ParameterCount& expected, | 975 const ParameterCount& expected, |
976 const ParameterCount& actual, | 976 const ParameterCount& actual, InvokeFlag flag, |
977 InvokeFlag flag, | 977 const CallWrapper& call_wrapper); |
978 const CallWrapper& call_wrapper); | |
979 | 978 |
980 // Invoke the JavaScript function in the given register. Changes the | 979 // Invoke the JavaScript function in the given register. Changes the |
981 // current context to the context in the function before invoking. | 980 // current context to the context in the function before invoking. |
982 void InvokeFunction(Register function, | 981 void InvokeFunction(Register function, |
983 Register new_target, | 982 Register new_target, |
984 const ParameterCount& actual, | 983 const ParameterCount& actual, |
985 InvokeFlag flag, | 984 InvokeFlag flag, |
986 const CallWrapper& call_wrapper); | 985 const CallWrapper& call_wrapper); |
987 | 986 |
988 void InvokeFunction(Register function, | 987 void InvokeFunction(Register function, |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1670 BranchDelaySlot bd = PROTECT); | 1669 BranchDelaySlot bd = PROTECT); |
1671 | 1670 |
1672 // Helper functions for generating invokes. | 1671 // Helper functions for generating invokes. |
1673 void InvokePrologue(const ParameterCount& expected, | 1672 void InvokePrologue(const ParameterCount& expected, |
1674 const ParameterCount& actual, | 1673 const ParameterCount& actual, |
1675 Label* done, | 1674 Label* done, |
1676 bool* definitely_mismatches, | 1675 bool* definitely_mismatches, |
1677 InvokeFlag flag, | 1676 InvokeFlag flag, |
1678 const CallWrapper& call_wrapper); | 1677 const CallWrapper& call_wrapper); |
1679 | 1678 |
| 1679 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 1680 const ParameterCount& expected, |
| 1681 const ParameterCount& actual); |
| 1682 |
1680 void InitializeNewString(Register string, | 1683 void InitializeNewString(Register string, |
1681 Register length, | 1684 Register length, |
1682 Heap::RootListIndex map_index, | 1685 Heap::RootListIndex map_index, |
1683 Register scratch1, | 1686 Register scratch1, |
1684 Register scratch2); | 1687 Register scratch2); |
1685 | 1688 |
1686 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1689 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
1687 void InNewSpace(Register object, | 1690 void InNewSpace(Register object, |
1688 Register scratch, | 1691 Register scratch, |
1689 Condition cond, // eq for new space, ne otherwise. | 1692 Condition cond, // eq for new space, ne otherwise. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1758 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1761 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1759 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1762 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1760 #else | 1763 #else |
1761 #define ACCESS_MASM(masm) masm-> | 1764 #define ACCESS_MASM(masm) masm-> |
1762 #endif | 1765 #endif |
1763 | 1766 |
1764 } // namespace internal | 1767 } // namespace internal |
1765 } // namespace v8 | 1768 } // namespace v8 |
1766 | 1769 |
1767 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1770 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |