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/machine-type.h" | 10 #include "src/compiler/machine-type.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // 0 <= location < 1023 -> a specific machine register | 39 // 0 <= location < 1023 -> a specific machine register |
40 // 1023 <= location < 1024 -> any machine register | 40 // 1023 <= location < 1024 -> any machine register |
41 // 1024 <= location -> a stack slot in the callee frame | 41 // 1024 <= location -> a stack slot in the callee frame |
42 int16_t location_; | 42 int16_t location_; |
43 }; | 43 }; |
44 | 44 |
45 typedef Signature<LinkageLocation> LocationSignature; | 45 typedef Signature<LinkageLocation> LocationSignature; |
46 | 46 |
47 // Describes a call to various parts of the compiler. Every call has the notion | 47 // Describes a call to various parts of the compiler. Every call has the notion |
48 // of a "target", which is the first input to the call. | 48 // of a "target", which is the first input to the call. |
49 class CallDescriptor FINAL : public ZoneObject { | 49 class CallDescriptor final : public ZoneObject { |
50 public: | 50 public: |
51 // Describes the kind of this call, which determines the target. | 51 // Describes the kind of this call, which determines the target. |
52 enum Kind { | 52 enum Kind { |
53 kCallCodeObject, // target is a Code object | 53 kCallCodeObject, // target is a Code object |
54 kCallJSFunction, // target is a JSFunction object | 54 kCallJSFunction, // target is a JSFunction object |
55 kCallAddress // target is a machine pointer | 55 kCallAddress // target is a machine pointer |
56 }; | 56 }; |
57 | 57 |
58 enum Flag { | 58 enum Flag { |
59 kNoFlags = 0u, | 59 kNoFlags = 0u, |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 CallDescriptor* const incoming_; | 238 CallDescriptor* const incoming_; |
239 | 239 |
240 DISALLOW_COPY_AND_ASSIGN(Linkage); | 240 DISALLOW_COPY_AND_ASSIGN(Linkage); |
241 }; | 241 }; |
242 | 242 |
243 } // namespace compiler | 243 } // namespace compiler |
244 } // namespace internal | 244 } // namespace internal |
245 } // namespace v8 | 245 } // namespace v8 |
246 | 246 |
247 #endif // V8_COMPILER_LINKAGE_H_ | 247 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |