Reduce execution time for "let" and "const" tests
authorsaambarati1@gmail.com <saambarati1@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Jul 2015 23:04:43 +0000 (23:04 +0000)
committersaambarati1@gmail.com <saambarati1@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Jul 2015 23:04:43 +0000 (23:04 +0000)
commitba6ea637df75eb83b637661bc98b2baa2ada1345
tree696952bd30af0a0cb319d827dd9577f3f0980fe8
parent666bff7fa4f2605cd534d2748f3d2ecf46214b4d
Reduce execution time for "let" and "const" tests
https://bugs.webkit.org/show_bug.cgi?id=147291

Reviewed by Geoffrey Garen.

We don't need to loop so many times for things that will not make it
into the DFG.  Also, we can loop a lot less for almost all the tests
because they're mostly testing the bytecode generator.

* tests/stress/const-and-with-statement.js:
* tests/stress/const-exception-handling.js:
* tests/stress/const-loop-semantics.js:
* tests/stress/const-not-strict-mode.js:
* tests/stress/const-semantics.js:
* tests/stress/const-tdz.js:
* tests/stress/lexical-let-and-with-statement.js:
* tests/stress/lexical-let-exception-handling.js:
(assert):
* tests/stress/lexical-let-loop-semantics.js:
(assert):
(shouldThrowTDZ):
(.):
* tests/stress/lexical-let-not-strict-mode.js:
* tests/stress/lexical-let-semantics.js:
(.):
* tests/stress/lexical-let-tdz.js:
(shouldThrowTDZ):
(.):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187460 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/tests/stress/const-and-with-statement.js
Source/JavaScriptCore/tests/stress/const-exception-handling.js
Source/JavaScriptCore/tests/stress/const-loop-semantics.js
Source/JavaScriptCore/tests/stress/const-not-strict-mode.js
Source/JavaScriptCore/tests/stress/const-semantics.js
Source/JavaScriptCore/tests/stress/const-tdz.js
Source/JavaScriptCore/tests/stress/lexical-let-and-with-statement.js
Source/JavaScriptCore/tests/stress/lexical-let-exception-handling.js
Source/JavaScriptCore/tests/stress/lexical-let-loop-semantics.js
Source/JavaScriptCore/tests/stress/lexical-let-not-strict-mode.js
Source/JavaScriptCore/tests/stress/lexical-let-semantics.js
Source/JavaScriptCore/tests/stress/lexical-let-tdz.js