| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 // handler chain. Register value must be x0. | 931 // handler chain. Register value must be x0. |
| 932 void ThrowUncatchable(Register value, | 932 void ThrowUncatchable(Register value, |
| 933 Register scratch1, | 933 Register scratch1, |
| 934 Register scratch2, | 934 Register scratch2, |
| 935 Register scratch3, | 935 Register scratch3, |
| 936 Register scratch4); | 936 Register scratch4); |
| 937 | 937 |
| 938 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None()); | 938 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None()); |
| 939 void TailCallStub(CodeStub* stub); | 939 void TailCallStub(CodeStub* stub); |
| 940 | 940 |
| 941 void CallRuntime(const Runtime::Function* f, int num_arguments); | 941 void CallRuntime(const Runtime::Function* f, |
| 942 void CallRuntime(Runtime::FunctionId fid, int num_arguments); | 942 int num_arguments, |
| 943 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 944 |
| 945 void CallRuntime(Runtime::FunctionId id, int num_arguments) { |
| 946 CallRuntime(Runtime::FunctionForId(id), num_arguments); |
| 947 } |
| 948 |
| 949 // TODO(all): Why does this variant save FP regs by default? |
| 950 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 951 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 952 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 953 } |
| 954 |
| 943 void TailCallRuntime(Runtime::FunctionId fid, | 955 void TailCallRuntime(Runtime::FunctionId fid, |
| 944 int num_arguments, | 956 int num_arguments, |
| 945 int result_size); | 957 int result_size); |
| 946 void CallRuntimeSaveDoubles(Runtime::FunctionId id); | |
| 947 | 958 |
| 948 int ActivationFrameAlignment(); | 959 int ActivationFrameAlignment(); |
| 949 | 960 |
| 950 // Calls a C function. | 961 // Calls a C function. |
| 951 // The called function is not allowed to trigger a | 962 // The called function is not allowed to trigger a |
| 952 // garbage collection, since that might move the code and invalidate the | 963 // garbage collection, since that might move the code and invalidate the |
| 953 // return address (unless this is somehow accounted for by the called | 964 // return address (unless this is somehow accounted for by the called |
| 954 // function). | 965 // function). |
| 955 void CallCFunction(ExternalReference function, | 966 void CallCFunction(ExternalReference function, |
| 956 int num_reg_arguments); | 967 int num_reg_arguments); |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2147 #error "Unsupported option" | 2158 #error "Unsupported option" |
| 2148 #define CODE_COVERAGE_STRINGIFY(x) #x | 2159 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2149 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2160 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2150 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2161 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2151 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2162 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2152 #else | 2163 #else |
| 2153 #define ACCESS_MASM(masm) masm-> | 2164 #define ACCESS_MASM(masm) masm-> |
| 2154 #endif | 2165 #endif |
| 2155 | 2166 |
| 2156 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2167 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |