| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/arm64/assembler-arm64.h" | 10 #include "src/arm64/assembler-arm64.h" |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 void CallCFunction(ExternalReference function, | 1167 void CallCFunction(ExternalReference function, |
| 1168 int num_reg_arguments); | 1168 int num_reg_arguments); |
| 1169 void CallCFunction(ExternalReference function, | 1169 void CallCFunction(ExternalReference function, |
| 1170 int num_reg_arguments, | 1170 int num_reg_arguments, |
| 1171 int num_double_arguments); | 1171 int num_double_arguments); |
| 1172 void CallCFunction(Register function, | 1172 void CallCFunction(Register function, |
| 1173 int num_reg_arguments, | 1173 int num_reg_arguments, |
| 1174 int num_double_arguments); | 1174 int num_double_arguments); |
| 1175 | 1175 |
| 1176 // Jump to a runtime routine. | 1176 // Jump to a runtime routine. |
| 1177 void JumpToExternalReference(const ExternalReference& builtin, | 1177 void JumpToExternalReference(const ExternalReference& builtin); |
| 1178 bool builtin_exit_frame = false); | |
| 1179 | 1178 |
| 1180 // Convenience function: call an external reference. | 1179 // Convenience function: call an external reference. |
| 1181 void CallExternalReference(const ExternalReference& ext, | 1180 void CallExternalReference(const ExternalReference& ext, |
| 1182 int num_arguments); | 1181 int num_arguments); |
| 1183 | 1182 |
| 1184 | 1183 |
| 1185 void Jump(Register target); | 1184 void Jump(Register target); |
| 1186 void Jump(Address target, RelocInfo::Mode rmode, Condition cond = al); | 1185 void Jump(Address target, RelocInfo::Mode rmode, Condition cond = al); |
| 1187 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 1186 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); |
| 1188 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 1187 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1696 // fp -> fp[0]: CallerFP (old fp) | 1695 // fp -> fp[0]: CallerFP (old fp) |
| 1697 // fp[-8]: SPOffset (new csp) | 1696 // fp[-8]: SPOffset (new csp) |
| 1698 // fp[-16]: CodeObject() | 1697 // fp[-16]: CodeObject() |
| 1699 // fp[-16 - fp-size]: Saved doubles, if saved_doubles is true. | 1698 // fp[-16 - fp-size]: Saved doubles, if saved_doubles is true. |
| 1700 // csp[8]: Memory reserved for the caller if extra_space != 0. | 1699 // csp[8]: Memory reserved for the caller if extra_space != 0. |
| 1701 // Alignment padding, if necessary. | 1700 // Alignment padding, if necessary. |
| 1702 // csp -> csp[0]: Space reserved for the return address. | 1701 // csp -> csp[0]: Space reserved for the return address. |
| 1703 // | 1702 // |
| 1704 // This function also stores the new frame information in the top frame, so | 1703 // This function also stores the new frame information in the top frame, so |
| 1705 // that the new frame becomes the current frame. | 1704 // that the new frame becomes the current frame. |
| 1706 void EnterExitFrame(bool save_doubles, const Register& scratch, | 1705 void EnterExitFrame(bool save_doubles, |
| 1707 int extra_space = 0, | 1706 const Register& scratch, |
| 1708 StackFrame::Type frame_type = StackFrame::EXIT); | 1707 int extra_space = 0); |
| 1709 | 1708 |
| 1710 // Leave the current exit frame, after a C function has returned to generated | 1709 // Leave the current exit frame, after a C function has returned to generated |
| 1711 // (JavaScript) code. | 1710 // (JavaScript) code. |
| 1712 // | 1711 // |
| 1713 // This effectively unwinds the operation of EnterExitFrame: | 1712 // This effectively unwinds the operation of EnterExitFrame: |
| 1714 // * Preserved doubles are restored (if restore_doubles is true). | 1713 // * Preserved doubles are restored (if restore_doubles is true). |
| 1715 // * The frame information is removed from the top frame. | 1714 // * The frame information is removed from the top frame. |
| 1716 // * The exit frame is dropped. | 1715 // * The exit frame is dropped. |
| 1717 // * The stack pointer is reset to jssp. | 1716 // * The stack pointer is reset to jssp. |
| 1718 // | 1717 // |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2313 #error "Unsupported option" | 2312 #error "Unsupported option" |
| 2314 #define CODE_COVERAGE_STRINGIFY(x) #x | 2313 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2315 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2314 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2316 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2315 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2317 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2316 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2318 #else | 2317 #else |
| 2319 #define ACCESS_MASM(masm) masm-> | 2318 #define ACCESS_MASM(masm) masm-> |
| 2320 #endif | 2319 #endif |
| 2321 | 2320 |
| 2322 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2321 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| OLD | NEW |