Qt Declarative (Quick 2)
Go to file
Simon Hausmann 0bba8d7411 Fix failing assertion in debug builds for JS that calls constants
For
    true()

we generate IR that looks like this:

    temp = true
    result = call temp()

and therefore the move at isel time has IR::Call as source and a temp
as base for the call. However constant propagation in the optimizer transforms
this to

    result = call true()

and that's a case we didn't handle in the IR visitor. Since we have
Runtime::callValue we can however handle this case as well and the run-time
will consequently produce the expected run-time error.

Change-Id: Ia94a8116388e66f9f339913307f68e33a5c18a19
Task-number: QTBUG-43819
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Reviewed-by: Jan Kundrát <jkt@kde.org>
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-01-15 11:29:37 +01:00
bin Update license headers and add new licenses 2014-08-25 11:28:46 +02:00
dist Added change log for 5.4.0 2014-12-02 09:56:19 +01:00
examples Fix compile issue with -opengl dynamic on Windows 2014-12-18 22:57:49 +01:00
src Fix failing assertion in debug builds for JS that calls constants 2015-01-15 11:29:37 +01:00
tests Fix failing assertion in debug builds for JS that calls constants 2015-01-15 11:29:37 +01:00
tools QMLJS: remove unused/unsupported command-line options 2014-12-19 10:32:16 +01:00
.gitattributes Update the git-archive export options 2012-09-10 14:24:05 +02:00
.gitignore Cleanup remaining QtQuick.Dialogs leftovers 2014-09-19 13:21:53 +02:00
.gitmodules Prospective fix for builds in the CI system on Windows machines 2013-08-07 11:51:25 +02:00
.qmake.conf Bump version 2014-12-12 13:47:54 +01:00
.tag Update the git-archive export options 2012-09-10 14:24:05 +02:00
LGPL_EXCEPTION.txt Add the mandatory license file to be consistent and proper 2013-02-15 09:07:14 +01:00
LICENSE.FDL Add the mandatory license file to be consistent and proper 2013-02-15 09:07:14 +01:00
LICENSE.GPLv2 Update license headers and add new licenses 2014-08-25 11:28:46 +02:00
LICENSE.LGPLv3 Update license headers and add new licenses 2014-08-25 11:28:46 +02:00
LICENSE.LGPLv21 Update license headers and add new licenses 2014-08-25 11:28:46 +02:00
qtdeclarative.pro Prospective build fix in the CI system for iOS 2014-02-16 16:06:17 +01:00
sync.profile Update glyph cache type/format logic to match qtbase changes 2014-02-20 02:03:48 +01:00