V4 IR: change IR printing to use a visitor.
authorErik Verbruggen <erik.verbruggen@digia.com>
Wed, 16 Apr 2014 11:22:28 +0000 (13:22 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 21 May 2014 14:27:09 +0000 (16:27 +0200)
commitf238e6e6447e7400e487e4eca20ffd9a062b7119
treefe3bd0c2d6bd08aee865f29d153de2a039dc59b0
parentdc5f86c8ffc2d6d13d00f2bb68373f66c91525c0
V4 IR: change IR printing to use a visitor.

This allows for overriding methods to customize the printing of nodes.
It also removes some duplicate code.

Change-Id: Ieb9eec2fa7d4e211932d7772586a1d62b119a90a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/compiler/qv4isel_p.cpp
src/qml/compiler/qv4jsir.cpp
src/qml/compiler/qv4jsir_p.h
src/qml/compiler/qv4ssa.cpp