From 2f6b26ed4545b2afe97b73f97938db56a98af822 Mon Sep 17 00:00:00 2001 From: verwaest Date: Tue, 9 Aug 2016 06:05:10 -0700 Subject: [PATCH] Read zone() directly from parser_ in ParserTraits BUG= Review-Url: https://codereview.chromium.org/2225373002 Cr-Commit-Position: refs/heads/master@{#38493} --- src/parsing/parser.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc index 36e777610c..7b1aff67e2 100644 --- a/src/parsing/parser.cc +++ b/src/parsing/parser.cc @@ -5862,11 +5862,7 @@ ParserTraits::GetReportedErrorList() const { return parser_->function_state_->GetReportedErrorList(); } - -Zone* ParserTraits::zone() const { - return parser_->function_state_->scope()->zone(); -} - +Zone* ParserTraits::zone() const { return parser_->zone(); } class NonPatternRewriter : public AstExpressionRewriter { public: