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