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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/compiler/frame.h" | 10 #include "src/compiler/frame.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 static const int16_t ANY_REGISTER = 32767; | 29 static const int16_t ANY_REGISTER = 32767; |
30 | 30 |
31 private: | 31 private: |
32 friend class CallDescriptor; | 32 friend class CallDescriptor; |
33 friend class OperandGenerator; | 33 friend class OperandGenerator; |
34 MachineType rep_; | 34 MachineType rep_; |
35 int16_t location_; // >= 0 implies register, otherwise stack slot. | 35 int16_t location_; // >= 0 implies register, otherwise stack slot. |
36 }; | 36 }; |
37 | 37 |
38 | 38 |
39 class CallDescriptor V8_FINAL : public ZoneObject { | 39 class CallDescriptor FINAL : public ZoneObject { |
40 public: | 40 public: |
41 // Describes whether the first parameter is a code object, a JSFunction, | 41 // Describes whether the first parameter is a code object, a JSFunction, |
42 // or an address--all of which require different machine sequences to call. | 42 // or an address--all of which require different machine sequences to call. |
43 enum Kind { kCallCodeObject, kCallJSFunction, kCallAddress }; | 43 enum Kind { kCallCodeObject, kCallJSFunction, kCallAddress }; |
44 | 44 |
45 enum Flag { | 45 enum Flag { |
46 // TODO(jarin) kLazyDeoptimization and kNeedsFrameState should be unified. | 46 // TODO(jarin) kLazyDeoptimization and kNeedsFrameState should be unified. |
47 kNoFlags = 0u, | 47 kNoFlags = 0u, |
48 kNeedsFrameState = 1u << 0, | 48 kNeedsFrameState = 1u << 0, |
49 kPatchableCallSite = 1u << 1, | 49 kPatchableCallSite = 1u << 1, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 private: | 194 private: |
195 CompilationInfo* info_; | 195 CompilationInfo* info_; |
196 CallDescriptor* incoming_; | 196 CallDescriptor* incoming_; |
197 }; | 197 }; |
198 | 198 |
199 } // namespace compiler | 199 } // namespace compiler |
200 } // namespace internal | 200 } // namespace internal |
201 } // namespace v8 | 201 } // namespace v8 |
202 | 202 |
203 #endif // V8_COMPILER_LINKAGE_H_ | 203 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |