Index: src/ast-numbering.cc |
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
index da23aad98a5249b2838046686ec1e6e80969e588..59b95cbd25d409be767a57a53f284e0ef2996f01 100644 |
--- a/src/ast-numbering.cc |
+++ b/src/ast-numbering.cc |
@@ -168,15 +168,26 @@ void AstNumberingVisitor::VisitThisFunction(ThisFunction* node) { |
} |
-void AstNumberingVisitor::VisitSuperReference(SuperReference* node) { |
+void AstNumberingVisitor::VisitSuperPropertyReference( |
+ SuperPropertyReference* node) { |
IncrementNodeCount(); |
DisableOptimization(kSuperReference); |
- node->set_base_id(ReserveIdRange(SuperReference::num_ids())); |
+ node->set_base_id(ReserveIdRange(SuperPropertyReference::num_ids())); |
Visit(node->this_var()); |
Visit(node->home_object_var()); |
} |
+void AstNumberingVisitor::VisitSuperCallReference(SuperCallReference* node) { |
+ IncrementNodeCount(); |
+ DisableOptimization(kSuperReference); |
+ node->set_base_id(ReserveIdRange(SuperCallReference::num_ids())); |
+ Visit(node->this_var()); |
+ Visit(node->new_target_var()); |
+ Visit(node->this_function_var()); |
+} |
+ |
+ |
void AstNumberingVisitor::VisitImportDeclaration(ImportDeclaration* node) { |
IncrementNodeCount(); |
DisableOptimization(kImportDeclaration); |