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 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 | 975 |
976 void InitializeRootRegister() { | 976 void InitializeRootRegister() { |
977 ExternalReference roots_array_start = | 977 ExternalReference roots_array_start = |
978 ExternalReference::roots_array_start(isolate()); | 978 ExternalReference::roots_array_start(isolate()); |
979 li(kRootRegister, Operand(roots_array_start)); | 979 li(kRootRegister, Operand(roots_array_start)); |
980 } | 980 } |
981 | 981 |
982 // ------------------------------------------------------------------------- | 982 // ------------------------------------------------------------------------- |
983 // JavaScript invokes. | 983 // JavaScript invokes. |
984 | 984 |
| 985 // Removes current frame and its arguments from the stack preserving |
| 986 // the arguments and a return address pushed to the stack for the next call. |
| 987 // Both |callee_args_count| and |caller_args_count_reg| do not include |
| 988 // receiver. |callee_args_count| is not modified, |caller_args_count_reg| |
| 989 // is trashed. |
| 990 void PrepareForTailCall(const ParameterCount& callee_args_count, |
| 991 Register caller_args_count_reg, Register scratch0, |
| 992 Register scratch1); |
| 993 |
985 // Invoke the JavaScript function code by either calling or jumping. | 994 // Invoke the JavaScript function code by either calling or jumping. |
986 | |
987 void InvokeFunctionCode(Register function, Register new_target, | 995 void InvokeFunctionCode(Register function, Register new_target, |
988 const ParameterCount& expected, | 996 const ParameterCount& expected, |
989 const ParameterCount& actual, InvokeFlag flag, | 997 const ParameterCount& actual, InvokeFlag flag, |
990 const CallWrapper& call_wrapper); | 998 const CallWrapper& call_wrapper); |
991 | 999 |
992 void FloodFunctionIfStepping(Register fun, Register new_target, | 1000 void FloodFunctionIfStepping(Register fun, Register new_target, |
993 const ParameterCount& expected, | 1001 const ParameterCount& expected, |
994 const ParameterCount& actual); | 1002 const ParameterCount& actual); |
995 | 1003 |
996 // Invoke the JavaScript function in the given register. Changes the | 1004 // Invoke the JavaScript function in the given register. Changes the |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1800 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1808 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1801 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1809 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1802 #else | 1810 #else |
1803 #define ACCESS_MASM(masm) masm-> | 1811 #define ACCESS_MASM(masm) masm-> |
1804 #endif | 1812 #endif |
1805 | 1813 |
1806 } // namespace internal | 1814 } // namespace internal |
1807 } // namespace v8 | 1815 } // namespace v8 |
1808 | 1816 |
1809 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1817 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |