aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4ssa.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-03-07 14:08:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-08 11:44:03 +0100
commit0c5620c43350804a5df03825ae7a849c783fbfeb (patch)
treec6a3996e63f74aa57629e820e938f3cbb9420241 /src/qml/compiler/qv4ssa.cpp
parent6c23aaf9395a2fd4b60246cc8fbf51c54c2bfb2c (diff)
V4 SSA: remove unused code.
Change-Id: I56b3e5400e7b9880b9534117ac17a80436ff1733 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4ssa.cpp')
-rw-r--r--src/qml/compiler/qv4ssa.cpp50
1 files changed, 1 insertions, 49 deletions
diff --git a/src/qml/compiler/qv4ssa.cpp b/src/qml/compiler/qv4ssa.cpp
index 847df6ecac..85f1677563 100644
--- a/src/qml/compiler/qv4ssa.cpp
+++ b/src/qml/compiler/qv4ssa.cpp
@@ -62,11 +62,6 @@
#include <cassert>
#include <algorithm>
-#ifdef CONST
-#undef CONST
-#endif
-
-#define QV4_NO_LIVENESS
#undef SHOW_SSA
#undef DEBUG_MOVEMAPPING
@@ -145,9 +140,6 @@ void showMeTheCode(IR::Function *function)
qout << endl;
}
Stmt *n = (i + 1) < code.size() ? code.at(i + 1) : 0;
-// if (n && s->asJump() && s->asJump()->target == leader.value(n)) {
-// continue;
-// }
QByteArray str;
QBuffer buf(&str);
@@ -165,50 +157,10 @@ void showMeTheCode(IR::Function *function)
out.flush();
-#ifndef QV4_NO_LIVENESS
- for (int i = 60 - str.size(); i >= 0; --i)
- str.append(' ');
-
qout << " " << str;
-
- // if (! s->uses.isEmpty()) {
- // qout << " // uses:";
- // foreach (unsigned use, s->uses) {
- // qout << " %" << use;
- // }
- // }
-
- // if (! s->defs.isEmpty()) {
- // qout << " // defs:";
- // foreach (unsigned def, s->defs) {
- // qout << " %" << def;
- // }
- // }
-
-# if 0
- if (! s->d->liveIn.isEmpty()) {
- qout << " // lives in:";
- for (int i = 0; i < s->d->liveIn.size(); ++i) {
- if (s->d->liveIn.testBit(i))
- qout << " %" << i;
- }
- }
-# else
- if (! s->d->liveOut.isEmpty()) {
- qout << " // lives out:";
- for (int i = 0; i < s->d->liveOut.size(); ++i) {
- if (s->d->liveOut.testBit(i))
- qout << " %" << i;
- }
- }
-# endif
-#else
- qout << " " << str;
-#endif
-
qout << endl;
- if (n && s->asCJump() /*&& s->asCJump()->iffalse != leader.value(n)*/) {
+ if (n && s->asCJump()) {
qout << " else goto L" << s->asCJump()->iffalse->index << ";" << endl;
}
}