Index: src/ast-numbering.cc |
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
index fd74b2e700af424ca554e088b49a964b805a6454..a2bc65827d9ded4afdc131c0467d2dab6d0006f4 100644 |
--- a/src/ast-numbering.cc |
+++ b/src/ast-numbering.cc |
@@ -441,7 +441,7 @@ void AstNumberingVisitor::VisitForStatement(ForStatement* node) { |
void AstNumberingVisitor::VisitClassLiteral(ClassLiteral* node) { |
IncrementNodeCount(); |
DisableOptimization(kClassLiteral); |
- node->set_base_id(ReserveIdRange(ClassLiteral::num_ids())); |
+ node->set_base_id(ReserveIdRange(node->num_ids())); |
if (node->extends()) Visit(node->extends()); |
if (node->constructor()) Visit(node->constructor()); |
if (node->class_variable_proxy()) { |
@@ -455,7 +455,7 @@ void AstNumberingVisitor::VisitClassLiteral(ClassLiteral* node) { |
void AstNumberingVisitor::VisitObjectLiteral(ObjectLiteral* node) { |
IncrementNodeCount(); |
- node->set_base_id(ReserveIdRange(ObjectLiteral::num_ids())); |
+ node->set_base_id(ReserveIdRange(node->num_ids())); |
for (int i = 0; i < node->properties()->length(); i++) { |
VisitObjectLiteralProperty(node->properties()->at(i)); |
} |