12015-02-19 Michael Saboff <msaboff@apple.com>
2
3 DFG JIT needs to check for stack overflow at the start of Program and Eval execution
4 https://bugs.webkit.org/show_bug.cgi?id=141676
5
6 Reviewed by NOBODY (OOPS!).
7
8 Added stack check to the beginning of the code the DFG copmiler emits for Program and Eval nodes.
9 To aid in testing the code, I replaced the EvalCodeCache::maxCacheableSourceLength const
10 a options in runtime/Options.h. The test script, run-jsc-stress-tests, sets that option
11 to a huge value when running with the "Eager" options. This allows the updated test to
12 reliably exercise the code in questions.
13
14 * dfg/DFGJITCompiler.cpp:
15 (JSC::DFG::JITCompiler::compile):
16 Added stack check.
17
18 * bytecode/EvalCodeCache.h:
19 (JSC::EvalCodeCache::tryGet):
20 (JSC::EvalCodeCache::getSlow):
21 * runtime/Options.h:
22 Replaced EvalCodeCache::imaxCacheableSourceLength with Options::maximumEvalCacheableSourceLength
23 so that it can be configured when running the related test.
24