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/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 ExternalReference roots_array_start = | 1014 ExternalReference roots_array_start = |
1015 ExternalReference::roots_array_start(isolate()); | 1015 ExternalReference::roots_array_start(isolate()); |
1016 li(kRootRegister, Operand(roots_array_start)); | 1016 li(kRootRegister, Operand(roots_array_start)); |
1017 } | 1017 } |
1018 | 1018 |
1019 // ------------------------------------------------------------------------- | 1019 // ------------------------------------------------------------------------- |
1020 // JavaScript invokes. | 1020 // JavaScript invokes. |
1021 | 1021 |
1022 // Invoke the JavaScript function code by either calling or jumping. | 1022 // Invoke the JavaScript function code by either calling or jumping. |
1023 void InvokeCode(Register code, | 1023 void InvokeCode(Register code, |
| 1024 Register new_code, |
1024 const ParameterCount& expected, | 1025 const ParameterCount& expected, |
1025 const ParameterCount& actual, | 1026 const ParameterCount& actual, |
1026 InvokeFlag flag, | 1027 InvokeFlag flag, |
1027 const CallWrapper& call_wrapper); | 1028 const CallWrapper& call_wrapper); |
1028 | 1029 |
1029 // Invoke the JavaScript function in the given register. Changes the | 1030 // Invoke the JavaScript function in the given register. Changes the |
1030 // current context to the context in the function before invoking. | 1031 // current context to the context in the function before invoking. |
1031 void InvokeFunction(Register function, | 1032 void InvokeFunction(Register function, |
| 1033 Register new_target, |
1032 const ParameterCount& actual, | 1034 const ParameterCount& actual, |
1033 InvokeFlag flag, | 1035 InvokeFlag flag, |
1034 const CallWrapper& call_wrapper); | 1036 const CallWrapper& call_wrapper); |
1035 | 1037 |
1036 void InvokeFunction(Register function, | 1038 void InvokeFunction(Register function, |
1037 const ParameterCount& expected, | 1039 const ParameterCount& expected, |
1038 const ParameterCount& actual, | 1040 const ParameterCount& actual, |
1039 InvokeFlag flag, | 1041 InvokeFlag flag, |
1040 const CallWrapper& call_wrapper); | 1042 const CallWrapper& call_wrapper); |
1041 | 1043 |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1847 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1849 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1848 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1850 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1849 #else | 1851 #else |
1850 #define ACCESS_MASM(masm) masm-> | 1852 #define ACCESS_MASM(masm) masm-> |
1851 #endif | 1853 #endif |
1852 | 1854 |
1853 } // namespace internal | 1855 } // namespace internal |
1854 } // namespace v8 | 1856 } // namespace v8 |
1855 | 1857 |
1856 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1858 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |