| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 kNoFlags = 0u, | 153 kNoFlags = 0u, |
| 154 kNeedsFrameState = 1u << 0, | 154 kNeedsFrameState = 1u << 0, |
| 155 kPatchableCallSite = 1u << 1, | 155 kPatchableCallSite = 1u << 1, |
| 156 kNeedsNopAfterCall = 1u << 2, | 156 kNeedsNopAfterCall = 1u << 2, |
| 157 kHasExceptionHandler = 1u << 3, | 157 kHasExceptionHandler = 1u << 3, |
| 158 kHasLocalCatchHandler = 1u << 4, | 158 kHasLocalCatchHandler = 1u << 4, |
| 159 kSupportsTailCalls = 1u << 5, | 159 kSupportsTailCalls = 1u << 5, |
| 160 kCanUseRoots = 1u << 6, | 160 kCanUseRoots = 1u << 6, |
| 161 // (arm64 only) native stack should be used for arguments. | 161 // (arm64 only) native stack should be used for arguments. |
| 162 kUseNativeStack = 1u << 7, | 162 kUseNativeStack = 1u << 7, |
| 163 // (arm64 only) call instruction has to restore JSSP. | 163 // (arm64 only) call instruction has to restore JSSP or CSP. |
| 164 kRestoreJSSP = 1u << 8, | 164 kRestoreJSSP = 1u << 8, |
| 165 kRestoreCSP = 1u << 9, |
| 165 // Causes the code generator to initialize the root register. | 166 // Causes the code generator to initialize the root register. |
| 166 kInitializeRootRegister = 1u << 9, | 167 kInitializeRootRegister = 1u << 10, |
| 167 kPatchableCallSiteWithNop = kPatchableCallSite | kNeedsNopAfterCall | 168 kPatchableCallSiteWithNop = kPatchableCallSite | kNeedsNopAfterCall |
| 168 }; | 169 }; |
| 169 typedef base::Flags<Flag> Flags; | 170 typedef base::Flags<Flag> Flags; |
| 170 | 171 |
| 171 CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc, | 172 CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc, |
| 172 const MachineSignature* machine_sig, | 173 const MachineSignature* machine_sig, |
| 173 LocationSignature* location_sig, size_t stack_param_count, | 174 LocationSignature* location_sig, size_t stack_param_count, |
| 174 Operator::Properties properties, | 175 Operator::Properties properties, |
| 175 RegList callee_saved_registers, | 176 RegList callee_saved_registers, |
| 176 RegList callee_saved_fp_registers, Flags flags, | 177 RegList callee_saved_fp_registers, Flags flags, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 CallDescriptor* const incoming_; | 398 CallDescriptor* const incoming_; |
| 398 | 399 |
| 399 DISALLOW_COPY_AND_ASSIGN(Linkage); | 400 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 400 }; | 401 }; |
| 401 | 402 |
| 402 } // namespace compiler | 403 } // namespace compiler |
| 403 } // namespace internal | 404 } // namespace internal |
| 404 } // namespace v8 | 405 } // namespace v8 |
| 405 | 406 |
| 406 #endif // V8_COMPILER_LINKAGE_H_ | 407 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |