| 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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 int num_reg_arguments, | 939 int num_reg_arguments, |
| 940 int num_double_arguments); | 940 int num_double_arguments); |
| 941 | 941 |
| 942 // Calls an API function. Allocates HandleScope, extracts returned value | 942 // Calls an API function. Allocates HandleScope, extracts returned value |
| 943 // from handle and propagates exceptions. | 943 // from handle and propagates exceptions. |
| 944 // 'stack_space' is the space to be unwound on exit (includes the call JS | 944 // 'stack_space' is the space to be unwound on exit (includes the call JS |
| 945 // arguments space and the additional space allocated for the fast call). | 945 // arguments space and the additional space allocated for the fast call). |
| 946 // 'spill_offset' is the offset from the stack pointer where | 946 // 'spill_offset' is the offset from the stack pointer where |
| 947 // CallApiFunctionAndReturn can spill registers. | 947 // CallApiFunctionAndReturn can spill registers. |
| 948 void CallApiFunctionAndReturn(ExternalReference function, | 948 void CallApiFunctionAndReturn(ExternalReference function, |
| 949 Address function_address, |
| 950 ExternalReference thunk_ref, |
| 951 Register thunk_last_arg, |
| 949 int stack_space, | 952 int stack_space, |
| 950 int spill_offset, | 953 int spill_offset, |
| 951 bool returns_handle, | 954 bool returns_handle, |
| 952 int return_value_offset_from_fp); | 955 int return_value_offset_from_fp); |
| 953 | 956 |
| 954 // The number of register that CallApiFunctionAndReturn will need to save on | 957 // The number of register that CallApiFunctionAndReturn will need to save on |
| 955 // the stack. The space for these registers need to be allocated in the | 958 // the stack. The space for these registers need to be allocated in the |
| 956 // ExitFrame before calling CallApiFunctionAndReturn. | 959 // ExitFrame before calling CallApiFunctionAndReturn. |
| 957 static const int kCallApiFunctionSpillSpace = 4; | 960 static const int kCallApiFunctionSpillSpace = 4; |
| 958 | 961 |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2105 #error "Unsupported option" | 2108 #error "Unsupported option" |
| 2106 #define CODE_COVERAGE_STRINGIFY(x) #x | 2109 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2107 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2110 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2108 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2111 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2109 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2112 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2110 #else | 2113 #else |
| 2111 #define ACCESS_MASM(masm) masm-> | 2114 #define ACCESS_MASM(masm) masm-> |
| 2112 #endif | 2115 #endif |
| 2113 | 2116 |
| 2114 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2117 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |