Index: src/ast-numbering.cc |
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
index fe17ec363a2fa75a2f4d5e3c78a99c809c8bd10b..11e55e7baaeed55588617898830d712d3b7a8457 100644 |
--- a/src/ast-numbering.cc |
+++ b/src/ast-numbering.cc |
@@ -415,7 +415,7 @@ void AstNumberingVisitor::VisitForStatement(ForStatement* node) { |
void AstNumberingVisitor::VisitClassLiteral(ClassLiteral* node) { |
IncrementNodeCount(); |
- DisableOptimization(kClassLiteral); |
+ DisableCrankshaft(kClassLiteral); |
node->set_base_id(ReserveIdRange(node->num_ids())); |
if (node->extends()) Visit(node->extends()); |
if (node->constructor()) Visit(node->constructor()); |