Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/saved-stacks/ (r=jorendorff)

--HG--
extra : rebase_source : 312ae833959e6413b9f538f28f4d7d5059ae679b
This commit is contained in:
Eric Faust 2018-10-09 15:41:50 -07:00
Родитель 379d35e422
Коммит 188d5bdfff
2 изменённых файлов: 3 добавлений и 6 удалений

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

@ -1,4 +1,4 @@
// |jit-test| --no-baseline
// |jit-test| --no-baseline; skip-if: !('oomTest' in this)
//
// For background, see the comments for LiveSavedFrameCache in js/src/vm/Stack.h.
//
@ -19,9 +19,6 @@
// interrupted the code at the proper place and revealed the crash, but did so
// with a test that took 90s to run. This test runs in a fraction of a second.
if (!('oomTest' in this))
quit();
function f() {
// Ensure that we will try to allocate fresh SavedFrame objects.
clearSavedFrames();

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

@ -1,4 +1,4 @@
if (!('oomTest' in this))
quit();
// |jit-test| skip-if: !('oomTest' in this)
let s = saveStack();
oomTest(() => { saveStack(); });