Compress temp usage in the interpreter.
authorErik Verbruggen <erik.verbruggen@digia.com>
Tue, 20 Nov 2012 08:35:32 +0000 (09:35 +0100)
committerLars Knoll <lars.knoll@digia.com>
Tue, 20 Nov 2012 11:05:41 +0000 (12:05 +0100)
commit43cd73b7a03cfb0d1de1f2ab9f579b4fd5842722
tree2f97f1033c0f53eea885480cb589b26314cd565a
parent72cda7ed8c06103d0a66a6441ddf1ab52d3010f1
Compress temp usage in the interpreter.

Uses a variation on linear scan register allocation as the algorithm. As
it depends on liveness analysis, keep that data around after codegen is
finished (in IR::Stmt::Data). Added clean-up code for it in the
IR::Function destructor.

Change-Id: If3636648efbafcc1df469a24aaa885e21e6a2f16
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
moth/qv4isel_moth.cpp
qv4codegen.cpp
qv4ir.cpp