| Index: src/ast/ast-numbering.cc
|
| diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc
|
| index 1730308d86af7bab45d4bb1900b3af607ee61398..499760de147efc18fde6bff67458d3a9d8814f1f 100644
|
| --- a/src/ast/ast-numbering.cc
|
| +++ b/src/ast/ast-numbering.cc
|
| @@ -15,8 +15,7 @@
|
| class AstNumberingVisitor final : public AstVisitor<AstNumberingVisitor> {
|
| public:
|
| AstNumberingVisitor(uintptr_t stack_limit, Zone* zone,
|
| - Compiler::EagerInnerFunctionLiterals* eager_literals,
|
| - bool collect_type_profile = false)
|
| + Compiler::EagerInnerFunctionLiterals* eager_literals)
|
| : zone_(zone),
|
| eager_literals_(eager_literals),
|
| next_id_(BailoutId::FirstUsable().ToInt()),
|
| @@ -26,8 +25,7 @@
|
| slot_cache_(zone),
|
| disable_crankshaft_reason_(kNoReason),
|
| dont_optimize_reason_(kNoReason),
|
| - catch_prediction_(HandlerTable::UNCAUGHT),
|
| - collect_type_profile_(collect_type_profile) {
|
| + catch_prediction_(HandlerTable::UNCAUGHT) {
|
| InitializeAstVisitor(stack_limit);
|
| }
|
|
|
| @@ -103,7 +101,6 @@
|
| BailoutReason disable_crankshaft_reason_;
|
| BailoutReason dont_optimize_reason_;
|
| HandlerTable::CatchPrediction catch_prediction_;
|
| - bool collect_type_profile_;
|
|
|
| DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
|
| DISALLOW_COPY_AND_ASSIGN(AstNumberingVisitor);
|
| @@ -425,8 +422,7 @@
|
| if (node->is_compound()) VisitBinaryOperation(node->binary_operation());
|
| VisitReference(node->target());
|
| Visit(node->value());
|
| - node->AssignFeedbackSlots(properties_.get_spec(), language_mode_,
|
| - &slot_cache_, collect_type_profile_);
|
| + ReserveFeedbackSlots(node);
|
| }
|
|
|
|
|
| @@ -718,14 +714,12 @@
|
|
|
| bool AstNumbering::Renumber(
|
| uintptr_t stack_limit, Zone* zone, FunctionLiteral* function,
|
| - Compiler::EagerInnerFunctionLiterals* eager_literals,
|
| - bool collect_type_profile) {
|
| + Compiler::EagerInnerFunctionLiterals* eager_literals) {
|
| DisallowHeapAllocation no_allocation;
|
| DisallowHandleAllocation no_handles;
|
| DisallowHandleDereference no_deref;
|
|
|
| - AstNumberingVisitor visitor(stack_limit, zone, eager_literals,
|
| - collect_type_profile);
|
| + AstNumberingVisitor visitor(stack_limit, zone, eager_literals);
|
| return visitor.Renumber(function);
|
| }
|
| } // namespace internal
|
|
|