| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, |
| 50 kNeedsNopAfterCall = 1u << 2, | 50 kNeedsNopAfterCall = 1u << 2, |
| 51 kPatchableCallSiteWithNop = kPatchableCallSite | kNeedsNopAfterCall | 51 kPatchableCallSiteWithNop = kPatchableCallSite | kNeedsNopAfterCall |
| 52 }; | 52 }; |
| 53 DEFINE_FLAGS(Flags, Flag); | 53 typedef base::Flags<Flag> Flags; |
| 54 | 54 |
| 55 CallDescriptor(Kind kind, int8_t return_count, int16_t parameter_count, | 55 CallDescriptor(Kind kind, int8_t return_count, int16_t parameter_count, |
| 56 int16_t input_count, LinkageLocation* locations, | 56 int16_t input_count, LinkageLocation* locations, |
| 57 Operator::Property properties, RegList callee_saved_registers, | 57 Operator::Property properties, RegList callee_saved_registers, |
| 58 Flags flags, const char* debug_name = "") | 58 Flags flags, const char* debug_name = "") |
| 59 : kind_(kind), | 59 : kind_(kind), |
| 60 return_count_(return_count), | 60 return_count_(return_count), |
| 61 parameter_count_(parameter_count), | 61 parameter_count_(parameter_count), |
| 62 input_count_(input_count), | 62 input_count_(input_count), |
| 63 locations_(locations), | 63 locations_(locations), |
| (...skipping 130 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 |