| 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/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 #include "src/compiler.h" | 6 #include "src/compiler.h" |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.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" |
| 11 #include "src/scopes.h" | 11 #include "src/scopes.h" |
| 12 | 12 |
| 13 namespace v8 { | 13 namespace v8 { |
| 14 namespace internal { | 14 namespace internal { |
| 15 namespace compiler { | 15 namespace compiler { |
| 16 | 16 |
| 17 | 17 |
| 18 std::ostream& operator<<(std::ostream& os, const CallDescriptor::Kind& k) { | 18 std::ostream& operator<<(std::ostream& os, const CallDescriptor::Kind& k) { |
| 19 switch (k) { | 19 switch (k) { |
| 20 case CallDescriptor::kCallCodeObject: | 20 case CallDescriptor::kCallCodeObject: |
| 21 os << "Code"; | 21 os << "Code"; |
| 22 break; | 22 break; |
| 23 case CallDescriptor::kCallJSFunction: | 23 case CallDescriptor::kCallJSFunction: |
| 24 os << "JS"; | 24 os << "JS"; |
| 25 break; | 25 break; |
| 26 case CallDescriptor::kCallAddress: | 26 case CallDescriptor::kCallAddress: |
| 27 os << "Addr"; | 27 os << "Addr"; |
| 28 break; | 28 break; |
| 29 case CallDescriptor::kInterpreterDispatch: |
| 30 os << "InterpreterDispatch"; |
| 31 break; |
| 29 } | 32 } |
| 30 return os; | 33 return os; |
| 31 } | 34 } |
| 32 | 35 |
| 33 | 36 |
| 34 std::ostream& operator<<(std::ostream& os, const CallDescriptor& d) { | 37 std::ostream& operator<<(std::ostream& os, const CallDescriptor& d) { |
| 35 // TODO(svenpanne) Output properties etc. and be less cryptic. | 38 // TODO(svenpanne) Output properties etc. and be less cryptic. |
| 36 return os << d.kind() << ":" << d.debug_name() << ":r" << d.ReturnCount() | 39 return os << d.kind() << ":" << d.debug_name() << ":r" << d.ReturnCount() |
| 37 << "j" << d.JSParameterCount() << "i" << d.InputCount() << "f" | 40 << "j" << d.JSParameterCount() << "i" << d.InputCount() << "f" |
| 38 << d.FrameStateCount() << "t" << d.SupportsTailCalls(); | 41 << d.FrameStateCount() << "t" << d.SupportsTailCalls(); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 262 |
| 260 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 263 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
| 261 const MachineSignature* sig) { | 264 const MachineSignature* sig) { |
| 262 UNIMPLEMENTED(); | 265 UNIMPLEMENTED(); |
| 263 return NULL; | 266 return NULL; |
| 264 } | 267 } |
| 265 #endif // !V8_TURBOFAN_BACKEND | 268 #endif // !V8_TURBOFAN_BACKEND |
| 266 } // namespace compiler | 269 } // namespace compiler |
| 267 } // namespace internal | 270 } // namespace internal |
| 268 } // namespace v8 | 271 } // namespace v8 |
| OLD | NEW |