Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index 8360627f6199dc4d9a9fc6a24e1bc05d443f1fe2..64e280a7bdf14033d3e5985fd5d474203b477774 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -126,6 +126,7 @@ void AstNumberingVisitor::VisitNativeFunctionLiteral( |
IncrementNodeCount(); |
DisableOptimization(kNativeFunctionLiteral); |
node->set_base_id(ReserveIdRange(NativeFunctionLiteral::num_ids())); |
+ ReserveFeedbackSlots(node); |
} |
@@ -596,6 +597,7 @@ void AstNumberingVisitor::VisitFunctionLiteral(FunctionLiteral* node) { |
node->set_base_id(ReserveIdRange(FunctionLiteral::num_ids())); |
// We don't recurse into the declarations or body of the function literal: |
// you have to separately Renumber() each FunctionLiteral that you compile. |
+ ReserveFeedbackSlots(node); |
} |