| 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 #include "src/compiler/linkage.h" | 5 #include "src/compiler/linkage.h" |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
| 9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
| 10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 os << "Addr"; | 27 os << "Addr"; |
| 28 break; | 28 break; |
| 29 } | 29 } |
| 30 return os; | 30 return os; |
| 31 } | 31 } |
| 32 | 32 |
| 33 | 33 |
| 34 OStream& operator<<(OStream& os, const CallDescriptor& d) { | 34 OStream& operator<<(OStream& os, const CallDescriptor& d) { |
| 35 // TODO(svenpanne) Output properties etc. and be less cryptic. | 35 // TODO(svenpanne) Output properties etc. and be less cryptic. |
| 36 return os << d.kind() << ":" << d.debug_name() << ":r" << d.ReturnCount() | 36 return os << d.kind() << ":" << d.debug_name() << ":r" << d.ReturnCount() |
| 37 << "p" << d.ParameterCount() << "i" << d.InputCount() | 37 << "p" << d.ParameterCount() << "i" << d.InputCount() << "f" |
| 38 << (d.CanLazilyDeoptimize() ? "deopt" : ""); | 38 << d.FrameStateCount() << (d.CanLazilyDeoptimize() ? "deopt" : ""); |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 Linkage::Linkage(CompilationInfo* info) : info_(info) { | 42 Linkage::Linkage(CompilationInfo* info) : info_(info) { |
| 43 if (info->function() != NULL) { | 43 if (info->function() != NULL) { |
| 44 // If we already have the function literal, use the number of parameters | 44 // If we already have the function literal, use the number of parameters |
| 45 // plus the receiver. | 45 // plus the receiver. |
| 46 incoming_ = GetJSCallDescriptor(1 + info->function()->parameter_count()); | 46 incoming_ = GetJSCallDescriptor(1 + info->function()->parameter_count()); |
| 47 } else if (!info->closure().is_null()) { | 47 } else if (!info->closure().is_null()) { |
| 48 // If we are compiling a JS function, use a JS call descriptor, | 48 // If we are compiling a JS function, use a JS call descriptor, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 CallDescriptor* Linkage::GetSimplifiedCDescriptor( | 140 CallDescriptor* Linkage::GetSimplifiedCDescriptor( |
| 141 Zone* zone, int num_params, MachineType return_type, | 141 Zone* zone, int num_params, MachineType return_type, |
| 142 const MachineType* param_types) { | 142 const MachineType* param_types) { |
| 143 UNIMPLEMENTED(); | 143 UNIMPLEMENTED(); |
| 144 return NULL; | 144 return NULL; |
| 145 } | 145 } |
| 146 #endif // !V8_TURBOFAN_BACKEND | 146 #endif // !V8_TURBOFAN_BACKEND |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 } // namespace v8::internal::compiler | 149 } // namespace v8::internal::compiler |
| OLD | NEW |