| 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_IMPL_H_ | 5 #ifndef V8_COMPILER_LINKAGE_IMPL_H_ |
| 6 #define V8_COMPILER_LINKAGE_IMPL_H_ | 6 #define V8_COMPILER_LINKAGE_IMPL_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 namespace compiler { | 10 namespace compiler { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 Operator::kNoProperties, // properties | 64 Operator::kNoProperties, // properties |
| 65 kNoCalleeSaved, // callee-saved registers | 65 kNoCalleeSaved, // callee-saved registers |
| 66 CallDescriptor::kNeedsFrameState); // flags | 66 CallDescriptor::kNeedsFrameState); // flags |
| 67 } | 67 } |
| 68 | 68 |
| 69 | 69 |
| 70 // TODO(turbofan): cache call descriptors for runtime calls. | 70 // TODO(turbofan): cache call descriptors for runtime calls. |
| 71 template <typename LinkageTraits> | 71 template <typename LinkageTraits> |
| 72 static CallDescriptor* GetRuntimeCallDescriptor( | 72 static CallDescriptor* GetRuntimeCallDescriptor( |
| 73 Zone* zone, Runtime::FunctionId function_id, int parameter_count, | 73 Zone* zone, Runtime::FunctionId function_id, int parameter_count, |
| 74 Operator::Property properties) { | 74 Operator::Properties properties) { |
| 75 const int code_count = 1; | 75 const int code_count = 1; |
| 76 const int function_count = 1; | 76 const int function_count = 1; |
| 77 const int num_args_count = 1; | 77 const int num_args_count = 1; |
| 78 const int context_count = 1; | 78 const int context_count = 1; |
| 79 const int input_count = code_count + parameter_count + function_count + | 79 const int input_count = code_count + parameter_count + function_count + |
| 80 num_args_count + context_count; | 80 num_args_count + context_count; |
| 81 | 81 |
| 82 const Runtime::Function* function = Runtime::FunctionForId(function_id); | 82 const Runtime::Function* function = Runtime::FunctionForId(function_id); |
| 83 const int return_count = function->result_size; | 83 const int return_count = function->result_size; |
| 84 LinkageLocation* locations = | 84 LinkageLocation* locations = |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 default: | 217 default: |
| 218 return false; | 218 return false; |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace compiler | 222 } // namespace compiler |
| 223 } // namespace internal | 223 } // namespace internal |
| 224 } // namespace v8 | 224 } // namespace v8 |
| 225 | 225 |
| 226 #endif // V8_COMPILER_LINKAGE_IMPL_H_ | 226 #endif // V8_COMPILER_LINKAGE_IMPL_H_ |
| OLD | NEW |