Bug 1459555 - Part 3: Allow off-main-thread BinAST compilation. (r=arai)

--HG--
extra : rebase_source : a2bd306c4c142432bd64ca4f63f858cdf45d1bbe
This commit is contained in:
Eric Faust 2018-10-02 01:16:51 -07:00
Родитель 19b1bcf007
Коммит 92171122b5
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -37,11 +37,6 @@ CanDoOffThread(JSContext* cx, const ReadOnlyCompileOptions& options, size_t leng
static const size_t HUGE_BC_LENGTH = 367 * 1000;
static const size_t HUGE_BINAST_LENGTH = 70 * 1000;
// TODO: We can't decode BinAST off main thread until bug 1459555 is fixed.
if (what == OffThread::DecodeBinAST) {
return false;
}
// These are heuristics which the caller may choose to ignore (e.g., for
// testing purposes).
if (!options.forceAsync) {