Index: src/ast-numbering.cc |
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
index 80786b107b4c815c464b6a23a0e38f30587d0788..da23aad98a5249b2838046686ec1e6e80969e588 100644 |
--- a/src/ast-numbering.cc |
+++ b/src/ast-numbering.cc |
@@ -155,7 +155,7 @@ void AstNumberingVisitor::VisitRegExpLiteral(RegExpLiteral* node) { |
void AstNumberingVisitor::VisitVariableProxy(VariableProxy* node) { |
IncrementNodeCount(); |
if (node->var()->IsLookupSlot()) { |
- DisableCrankshaft(kReferenceToAVariableWhichRequiresDynamicLookup); |
+ DisableOptimization(kReferenceToAVariableWhichRequiresDynamicLookup); |
} |
ReserveFeedbackSlots(node); |
node->set_base_id(ReserveIdRange(VariableProxy::num_ids())); |