Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: src/parsing/parser.cc

Issue 2225373002: Read zone() directly from parser_ in ParserTraits (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index b7761564f26abe1031a68d1f486f4843d14f61e8..0c0417e501454ee7785ed2b436affae41b907aee 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -5859,11 +5859,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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698