The jsc shell should allow disabling of the Gigacage for testing purposes.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 Sep 2019 14:53:21 +0000 (14:53 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 Sep 2019 14:53:21 +0000 (14:53 +0000)
commit80a6dfc837949aeb587acb915d0ce504d2b9a59c
treebc789888a5053a26dd89bc1e45f40f6fa38ae6da
parentd61651ad87fce7050a3950aedde67b6c1a4d4040
The jsc shell should allow disabling of the Gigacage for testing purposes.
https://bugs.webkit.org/show_bug.cgi?id=201579

Reviewed by Michael Saboff.

JSTests:

Unskip the tests now.

* stress/disable-gigacage-arrays.js:
* stress/disable-gigacage-strings.js:
* stress/disable-gigacage-typed-arrays.js:

Source/JavaScriptCore:

Check for the same GIGACAGE_ENABLED env var that is checked by Gigacage code.  If
this env var is present and it has a falsy value, then do not
forbidDisablingPrimitiveGigacage() in the jsc shell.

* jsc.cpp:
(jscmain):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/stress/disable-gigacage-arrays.js
JSTests/stress/disable-gigacage-strings.js
JSTests/stress/disable-gigacage-typed-arrays.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jsc.cpp