Bug 1236104 - Increase tiny script limit for off-thread compilation. r=djvj

This commit is contained in:
Yury Delendik 2016-01-14 15:41:37 -06:00
parent cbcd1cf6ba
commit 6ad6825fc7

View File

@ -4097,7 +4097,7 @@ JS::CompileForNonSyntacticScope(JSContext* cx, const ReadOnlyCompileOptions& opt
JS_PUBLIC_API(bool)
JS::CanCompileOffThread(JSContext* cx, const ReadOnlyCompileOptions& options, size_t length)
{
static const size_t TINY_LENGTH = 5 * 1000;
static const size_t TINY_LENGTH = 25 * 1000;
static const size_t HUGE_LENGTH = 100 * 1000;
// These are heuristics which the caller may choose to ignore (e.g., for