Bug 1592433 - Hoist Deferred Allocation mode from FunctionTreeHolder to ParseInfo r=mgaudet

Differential Revision: https://phabricator.services.mozilla.com/D52726
This commit is contained in:
vad118
2019-11-19 16:25:41 +00:00
parent 364afd5508
commit 4def7cc9c3
5 changed files with 19 additions and 19 deletions

View File

@@ -92,7 +92,7 @@ BinASTParserPerTokenizer<Tok>::BinASTParserPerTokenizer(
lazyScript_(cx, lazyScript),
handler_(cx, parseInfo.allocScope.alloc(), nullptr, SourceKind::Binary),
variableDeclarationKind_(VariableDeclarationKind::Var),
treeHolder_(cx, FunctionTreeHolder::Mode::Eager) {
treeHolder_(cx) {
MOZ_ASSERT_IF(lazyScript_, lazyScript_->isBinAST());
}