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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 kHasExceptionHandler = 1u << 1, | 155 kHasExceptionHandler = 1u << 1, |
156 kHasLocalCatchHandler = 1u << 2, | 156 kHasLocalCatchHandler = 1u << 2, |
157 kSupportsTailCalls = 1u << 3, | 157 kSupportsTailCalls = 1u << 3, |
158 kCanUseRoots = 1u << 4, | 158 kCanUseRoots = 1u << 4, |
159 // (arm64 only) native stack should be used for arguments. | 159 // (arm64 only) native stack should be used for arguments. |
160 kUseNativeStack = 1u << 5, | 160 kUseNativeStack = 1u << 5, |
161 // (arm64 only) call instruction has to restore JSSP or CSP. | 161 // (arm64 only) call instruction has to restore JSSP or CSP. |
162 kRestoreJSSP = 1u << 6, | 162 kRestoreJSSP = 1u << 6, |
163 kRestoreCSP = 1u << 7, | 163 kRestoreCSP = 1u << 7, |
164 // Causes the code generator to initialize the root register. | 164 // Causes the code generator to initialize the root register. |
165 kInitializeRootRegister = 1u << 8 | 165 kInitializeRootRegister = 1u << 8, |
| 166 // Does not ever try to allocate space on our heap. |
| 167 kNoAllocate = 1u << 9 |
166 }; | 168 }; |
167 typedef base::Flags<Flag> Flags; | 169 typedef base::Flags<Flag> Flags; |
168 | 170 |
169 CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc, | 171 CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc, |
170 const MachineSignature* machine_sig, | 172 const MachineSignature* machine_sig, |
171 LocationSignature* location_sig, size_t stack_param_count, | 173 LocationSignature* location_sig, size_t stack_param_count, |
172 Operator::Properties properties, | 174 Operator::Properties properties, |
173 RegList callee_saved_registers, | 175 RegList callee_saved_registers, |
174 RegList callee_saved_fp_registers, Flags flags, | 176 RegList callee_saved_fp_registers, Flags flags, |
175 const char* debug_name = "") | 177 const char* debug_name = "") |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 CallDescriptor* const incoming_; | 403 CallDescriptor* const incoming_; |
402 | 404 |
403 DISALLOW_COPY_AND_ASSIGN(Linkage); | 405 DISALLOW_COPY_AND_ASSIGN(Linkage); |
404 }; | 406 }; |
405 | 407 |
406 } // namespace compiler | 408 } // namespace compiler |
407 } // namespace internal | 409 } // namespace internal |
408 } // namespace v8 | 410 } // namespace v8 |
409 | 411 |
410 #endif // V8_COMPILER_LINKAGE_H_ | 412 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |