V4: fix range splitting when split is between intervals.
authorErik Verbruggen <erik.verbruggen@digia.com>
Fri, 17 Jan 2014 10:45:37 +0000 (11:45 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 17 Jan 2014 11:20:00 +0000 (12:20 +0100)
commita0494a2092d7512a2b0d568a21058ed77b0cea11
tree2ffe57e0fefc87a363ea7fc69e9e944766671340
parent7030adff1869e850a7b983e88d7a773d5d594886
V4: fix range splitting when split is between intervals.

Also added some "white-box" unit tests and sprinkled in a bit of
documentation. The case that went wrong is covered by the test
rangeSplitting_1: before the fix, the new interval would have
two ranges: [66-64],[70-71]. The first range is invalid and should not
be there at all.

Change-Id: If0742f4e6a96d98ea5d696f95126886ba66f92bb
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/compiler/qv4jsir_p.h
src/qml/compiler/qv4regalloc.cpp
src/qml/compiler/qv4ssa.cpp
src/qml/compiler/qv4ssa_p.h
tests/auto/qml/qml.pro
tests/auto/qml/v4misc/tst_v4misc.cpp [new file with mode: 0644]
tests/auto/qml/v4misc/v4misc.pro [new file with mode: 0644]