Fix a warning about not using a set variable

6a36bcb7945109daebd6464ee6d0a3f6724fb18b fixed similar warnings, but apparently
the tools folder was left out.

Change-Id: If7f889e404264688fa6208afcd3bfdba5a161714
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Stabilize tst_QQuickMultiPointTouchArea.

Center windows on screen, introduce QScopedPointer.

Change-Id: Ia9205f74211eba1f2d2250ff1c76f54618ed7d79
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Add missing file to qquickflickable test

Change-Id: I69014a85f61bbf1958daa1e4b6cda59534c04a83
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Fix return type checks in test.

Same problem as 3dbc7a72c7e38b2a34df3a9ef496547c795420af fixed in
another test. Same solution.

Change-Id: Ib476239e567c43e4657487c34cfc7157a1f5d33f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
V4 JIT: generate code for binary expressions.

Change-Id: If32ee3528fa0b6a2d04263d6c6abe1d34053d658
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
tst_qquicktextinput/data::maxLength(): Fix assert about zero-width window.

Occurring with ANGLE-builds.

Task-number: QTBUG-32541
Change-Id: Ib48f0c802dd3242a227f8c5d7fda2fccca71403a
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
V4 JIT: finish swapValues.

Change-Id: I92b2a84128714927d61c9879c5ddb584631ea2ce
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
V4 JIT: fix visitRet for UInt32 temps.

Change-Id: Ia104cc50523f6aef348ecbe0b597b79c1817390a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
DefaultColorDialog bugfix: binding color to a TextField

The text field shows the hex value of the currently selected color,
but the color to string conversion is not implicit.

Change-Id: I914033d6358696b4014ca48bf3ae435c98b5be33
Reviewed-by: Liang Qi <liang.qi@digia.com>
Qquickimageparticle: Simplify code

Clang nags about perfLevel < 9999 being always true.

Change-Id: I09f46a8cd81f0f7eecdbd5eabd52f8f7ff4603c1
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
V4 regalloc: fix cycle scheduling in resolve phase.

When resolving differences in register/spill-slot assignment between
basic-blocks, dependency cycles can occur. Those cycles have to be
scheduled after non-cyclic dependencies.

This also removes a assertion that only held when the cycle was 2 long,
but would incorrectly fire for longer cycles.

Change-Id: I519fd43bbf117d3480e4169ff363e97a9ec450f8
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
V4 regalloc: correct life-time hole handling.

When a life-range is active, but does not cover a position, it means
that it is inactive. When going from active to inactive (or vice-versa),
a (un-)spill is only needed when there is a stack-slot allocated to the
range. It is valid to not have a stack slot: when no call is done, or
when the register pressure does not push the end of the hole onto the
stack.

Change-Id: I5f5a05181c8cb384f031538dbefd7d11de682b8d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
V4 JIT: change the stack layout.

The saved register area (used to store values in registers that need to
be passed by reference in a function call) is now right behind the
callee saved register area. This means that the stack now has two
"parts": a JavaScript part with the function call arguments and the
locals, and a "C++" part that holds saved registers which do not need to
be garbage collected.

This also fixes a bug where the size of the CallData was not taken into
account when calculating the offset for the saved registers.

Change-Id: If0af072f3299176c54ad33710e7d15bc9d26ae8b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Export QQuickDefaultClipNode for modules using quick-private.

Change-Id: Ia79d53dcb5a2ce4e91820c88e2dada666c6d7841
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Allow QtQuick private headers to be used with QT_NO_KEYWORDS.

This is necessary for the QtWebEngine module.

This also adds an empty nokeywords test using the same mechanism
as qtbase/tests/auto/tools/moc/no-keywords.h to find conflicts
at compile time.

Change-Id: I9df541720797dd61f078178c2af68ead18ff8bfe
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
V4 IR: fix Temp equality, and its use in type inference.

Change-Id: Ibf14d8835517981eda41ee768446da49965248be
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
V4: add counters for built-in function invocations.

When enabled, counters for the number of invocations of built-in runtime
functions are dumped when the application exits normally.

Note: this gives a penalty on execution speed. It is not meant to be
super light-weight, but as a tool to have an indication which functions
get called most, thereby helping to indicate which code-paths to
optimize.

Change-Id: Ica701f36a578affcce5ee8414532259972e5ede5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
V4 JIT: add env. var. QV4_NO_REGALLOC.

If set to anything, no register allocation will be performed.

Change-Id: Ibe11ad8c8ac6dacd898bc4a4d5296476ca6ddb14
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
V4: fix variable collection for assignment to non-temporaries.

Change-Id: Ie1de760824d8927cf10cbc1e02145f40d812e8ee
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Fix passing of exception table pointers to ARM runtime on unwinding

Our synthetic exception unwind table for ARM is located at

    (char *)codeStart + function->codeSize;

This relies on function->codeSize to contain the number of bytes of
instructions the function has, not the size of the MacroAssemblerCodeRef
(which contains the size of the entire area).

This patch fixes the calculation of function->codeSize and also replaces
the QHash for the IR::Function* -> CodeRef mapping in the masm backend
with a simple vector that's perfectly sufficient.

Bug spotted by Petr Nejedly

Change-Id: I78a53599085c613c6d97aa2490922f54e0bb4f63
Reviewed-by: Lars Knoll <lars.knoll@digia.com>