diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-28 09:43:32 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-29 06:54:02 +0000 |
commit | a7fc82e2e95657e048e43fe438d07b63349c38cd (patch) | |
tree | 48dfcfc88fb60cdb89efaabed53fcc6b82634e1a /tests/auto/qml/qml.pro | |
parent | 2d1a50228571a82ab7a098a64ef04b4ccfe7ee15 (diff) |
Optimize access to lexically scoped variables
If we access a lexically scoped variable after the initializer, then we
know it's either initialized or at least undefined, so we don't need to
do the TDZ check anymore.
The ES tests ensure that we don't optimize too much and the newly
revived tst_v4misc test ensures that we do not generate the TDZ check
instruction for certain scenarios.
Change-Id: I6706d1feb22217f323124ee698ebadb70324693b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/qml/qml.pro')
-rw-r--r-- | tests/auto/qml/qml.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qml/qml.pro b/tests/auto/qml/qml.pro index 1bd23573b0..4d9e5c23c5 100644 --- a/tests/auto/qml/qml.pro +++ b/tests/auto/qml/qml.pro @@ -73,7 +73,8 @@ PRIVATETESTS += \ qv4mm \ qv4identifiertable \ ecmascripttests \ - bindingdependencyapi + bindingdependencyapi \ + v4misc qtHaveModule(widgets) { PUBLICTESTS += \ |