OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_COMPILER_LINKAGE_H_ | 5 #ifndef V8_COMPILER_LINKAGE_H_ |
6 #define V8_COMPILER_LINKAGE_H_ | 6 #define V8_COMPILER_LINKAGE_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/frame.h" | 9 #include "src/compiler/frame.h" |
10 #include "src/compiler/operator.h" | 10 #include "src/compiler/operator.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 enum Flag { | 147 enum Flag { |
148 kNoFlags = 0u, | 148 kNoFlags = 0u, |
149 kNeedsFrameState = 1u << 0, | 149 kNeedsFrameState = 1u << 0, |
150 kPatchableCallSite = 1u << 1, | 150 kPatchableCallSite = 1u << 1, |
151 kNeedsNopAfterCall = 1u << 2, | 151 kNeedsNopAfterCall = 1u << 2, |
152 kHasExceptionHandler = 1u << 3, | 152 kHasExceptionHandler = 1u << 3, |
153 kHasLocalCatchHandler = 1u << 4, | 153 kHasLocalCatchHandler = 1u << 4, |
154 kSupportsTailCalls = 1u << 5, | 154 kSupportsTailCalls = 1u << 5, |
155 kCanUseRoots = 1u << 6, | 155 kCanUseRoots = 1u << 6, |
156 // Indicates that the native stack should be used for a code object. This | 156 // (arm64 only) native stack should be used for arguments. |
157 // information is important for native calls on arm64. | |
158 kUseNativeStack = 1u << 7, | 157 kUseNativeStack = 1u << 7, |
| 158 // (arm64 only) call instruction has to restore JSSP. |
| 159 kRestoreJSSP = 1u << 8, |
159 kPatchableCallSiteWithNop = kPatchableCallSite | kNeedsNopAfterCall | 160 kPatchableCallSiteWithNop = kPatchableCallSite | kNeedsNopAfterCall |
160 }; | 161 }; |
161 typedef base::Flags<Flag> Flags; | 162 typedef base::Flags<Flag> Flags; |
162 | 163 |
163 CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc, | 164 CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc, |
164 const MachineSignature* machine_sig, | 165 const MachineSignature* machine_sig, |
165 LocationSignature* location_sig, size_t stack_param_count, | 166 LocationSignature* location_sig, size_t stack_param_count, |
166 Operator::Properties properties, | 167 Operator::Properties properties, |
167 RegList callee_saved_registers, | 168 RegList callee_saved_registers, |
168 RegList callee_saved_fp_registers, Flags flags, | 169 RegList callee_saved_fp_registers, Flags flags, |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 CallDescriptor* const incoming_; | 397 CallDescriptor* const incoming_; |
397 | 398 |
398 DISALLOW_COPY_AND_ASSIGN(Linkage); | 399 DISALLOW_COPY_AND_ASSIGN(Linkage); |
399 }; | 400 }; |
400 | 401 |
401 } // namespace compiler | 402 } // namespace compiler |
402 } // namespace internal | 403 } // namespace internal |
403 } // namespace v8 | 404 } // namespace v8 |
404 | 405 |
405 #endif // V8_COMPILER_LINKAGE_H_ | 406 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |