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