diff options
author | Erik Verbruggen <erik.verbruggen@me.com> | 2013-09-26 14:49:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-30 11:28:55 +0200 |
commit | 7c3f891c454971ed0150e66c2261e6e5c36664a3 (patch) | |
tree | 067a59085a30ddf7ade38dd1cad078033a886486 /src/qml/compiler/qv4regalloc.cpp | |
parent | 9194779ef37187b1b38d73099747459f9f5e745c (diff) |
V4: remove inplace operations
Inplace operations are expanded when building the IR, so the neither the
IR, nor the instruction selection backends or runtime need to handle
them.
Change-Id: Id01f9544e137dd52364cf2ed2c10931c31ddfff3
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4regalloc.cpp')
-rw-r--r-- | src/qml/compiler/qv4regalloc.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/qml/compiler/qv4regalloc.cpp b/src/qml/compiler/qv4regalloc.cpp index 20036d3be4..7fd5864af3 100644 --- a/src/qml/compiler/qv4regalloc.cpp +++ b/src/qml/compiler/qv4regalloc.cpp @@ -480,24 +480,6 @@ protected: // IRDecoder } } - virtual void inplaceNameOp(V4IR::AluOp oper, V4IR::Temp *rightSource, const QString &targetName) - { - Q_UNREACHABLE(); - // TODO: remove this! - } - - virtual void inplaceElementOp(V4IR::AluOp oper, V4IR::Temp *source, V4IR::Temp *targetBaseTemp, V4IR::Temp *targetIndexTemp) - { - Q_UNREACHABLE(); - // TODO: remove this! - } - - virtual void inplaceMemberOp(V4IR::AluOp oper, V4IR::Temp *source, V4IR::Temp *targetBase, const QString &targetName) - { - Q_UNREACHABLE(); - // TODO: remove this! - } - virtual void visitJump(V4IR::Jump *) {} virtual void visitCJump(V4IR::CJump *s) { @@ -906,8 +888,7 @@ private: Move *store = _function->New<Move>(); store->init(createTemp(Temp::StackSlot, spillSlot, type), - createTemp(Temp::PhysicalRegister, pReg, type), - V4IR::OpInvalid); + createTemp(Temp::PhysicalRegister, pReg, type)); return store; } @@ -918,8 +899,7 @@ private: Q_ASSERT(spillSlot != -1); Move *load = _function->New<Move>(); load->init(createTemp(Temp::PhysicalRegister, pReg, t.type), - createTemp(Temp::StackSlot, spillSlot, t.type), - V4IR::OpInvalid); + createTemp(Temp::StackSlot, spillSlot, t.type)); return load; } |