Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index 108c6e1b0721529f719cac09374bed445deee17d..9aab22ed302dcd9c5bd471e8948c0f9b50b00ca4 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -393,9 +393,13 @@ void AstNumberingVisitor::VisitCompareOperation(CompareOperation* node) { |
ReserveFeedbackSlots(node); |
} |
- |
-void AstNumberingVisitor::VisitSpread(Spread* node) { UNREACHABLE(); } |
- |
+void AstNumberingVisitor::VisitSpread(Spread* node) { |
+ IncrementNodeCount(); |
+ // We can only get here from super calls currently. |
+ DisableFullCodegenAndCrankshaft(kSuperReference); |
+ node->set_base_id(ReserveIdRange(Spread::num_ids())); |
+ Visit(node->expression()); |
+} |
void AstNumberingVisitor::VisitEmptyParentheses(EmptyParentheses* node) { |
UNREACHABLE(); |