Index: src/background-parsing-task.cc |
diff --git a/src/background-parsing-task.cc b/src/background-parsing-task.cc |
index 6ac743e1e52322422eb3190e79879236551496ad..393a9481b8ad69fb1fa52e581033760ef56f9dac 100644 |
--- a/src/background-parsing-task.cc |
+++ b/src/background-parsing-task.cc |
@@ -45,13 +45,14 @@ void BackgroundParsingTask::Run() { |
source_->info->SetCachedData(&script_data, options_); |
} |
- uintptr_t limit = reinterpret_cast<uintptr_t>(&limit) - stack_size_ * KB; |
- Parser::ParseInfo parse_info = {limit, source_->hash_seed, |
- &source_->unicode_cache}; |
+ uintptr_t stack_limit = |
+ reinterpret_cast<uintptr_t>(&stack_limit) - stack_size_ * KB; |
// Parser needs to stay alive for finalizing the parsing on the main |
// thread. Passing &parse_info is OK because Parser doesn't store it. |
- source_->parser.Reset(new Parser(source_->info.get(), &parse_info)); |
+ source_->parser.Reset(new Parser(source_->info.get(), stack_limit, |
+ source_->hash_seed, |
+ &source_->unicode_cache)); |
source_->parser->set_allow_lazy(source_->allow_lazy); |
source_->parser->ParseOnBackground(); |