Index: src/crankshaft/hydrogen-instructions.cc |
diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc |
index 620d5b389def336f6026fed475fe28a6f47f0c26..9cd15026db24d3ff07117ec1e006d91110850e4f 100644 |
--- a/src/crankshaft/hydrogen-instructions.cc |
+++ b/src/crankshaft/hydrogen-instructions.cc |
@@ -911,6 +911,18 @@ std::ostream& HBinaryCall::PrintDataTo(std::ostream& os) const { // NOLINT |
<< argument_count(); |
} |
+std::ostream& HInvokeFunction::PrintTo(std::ostream& os) const { // NOLINT |
+ if (tail_call_mode() == TailCallMode::kAllow) os << "Tail"; |
+ return HBinaryCall::PrintTo(os); |
+} |
+ |
+std::ostream& HInvokeFunction::PrintDataTo(std::ostream& os) const { // NOLINT |
+ HBinaryCall::PrintDataTo(os); |
+ if (syntactic_tail_call_mode() == TailCallMode::kAllow) { |
+ os << ", JSTailCall"; |
+ } |
+ return os; |
+} |
void HBoundsCheck::ApplyIndexChange() { |
if (skip_check()) return; |
@@ -1033,7 +1045,11 @@ std::ostream& HCallWithDescriptor::PrintDataTo( |
for (int i = 0; i < OperandCount(); i++) { |
os << NameOf(OperandAt(i)) << " "; |
} |
- return os << "#" << argument_count(); |
+ os << "#" << argument_count(); |
+ if (syntactic_tail_call_mode() == TailCallMode::kAllow) { |
+ os << ", JSTailCall"; |
+ } |
+ return os; |
} |