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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 }; | 137 }; |
138 | 138 |
139 typedef Signature<LinkageLocation> LocationSignature; | 139 typedef Signature<LinkageLocation> LocationSignature; |
140 | 140 |
141 // Describes a call to various parts of the compiler. Every call has the notion | 141 // Describes a call to various parts of the compiler. Every call has the notion |
142 // of a "target", which is the first input to the call. | 142 // of a "target", which is the first input to the call. |
143 class CallDescriptor final : public ZoneObject { | 143 class CallDescriptor final : public ZoneObject { |
144 public: | 144 public: |
145 // Describes the kind of this call, which determines the target. | 145 // Describes the kind of this call, which determines the target. |
146 enum Kind { | 146 enum Kind { |
147 kCallCodeObject, // target is a Code object | 147 kCallCodeObject, // target is a Code object |
148 kCallJSFunction, // target is a JSFunction object | 148 kCallWasmFunction, // target is a Wasm function identified by its index |
149 kCallAddress // target is a machine pointer | 149 kCallJSFunction, // target is a JSFunction object |
| 150 kCallAddress // target is a machine pointer |
150 }; | 151 }; |
151 | 152 |
152 enum Flag { | 153 enum Flag { |
153 kNoFlags = 0u, | 154 kNoFlags = 0u, |
154 kNeedsFrameState = 1u << 0, | 155 kNeedsFrameState = 1u << 0, |
155 kHasExceptionHandler = 1u << 1, | 156 kHasExceptionHandler = 1u << 1, |
156 kHasLocalCatchHandler = 1u << 2, | 157 kHasLocalCatchHandler = 1u << 2, |
157 kSupportsTailCalls = 1u << 3, | 158 kSupportsTailCalls = 1u << 3, |
158 kCanUseRoots = 1u << 4, | 159 kCanUseRoots = 1u << 4, |
159 // (arm64 only) native stack should be used for arguments. | 160 // (arm64 only) native stack should be used for arguments. |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 CallDescriptor* const incoming_; | 404 CallDescriptor* const incoming_; |
404 | 405 |
405 DISALLOW_COPY_AND_ASSIGN(Linkage); | 406 DISALLOW_COPY_AND_ASSIGN(Linkage); |
406 }; | 407 }; |
407 | 408 |
408 } // namespace compiler | 409 } // namespace compiler |
409 } // namespace internal | 410 } // namespace internal |
410 } // namespace v8 | 411 } // namespace v8 |
411 | 412 |
412 #endif // V8_COMPILER_LINKAGE_H_ | 413 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |