From: Erik Verbruggen Date: Wed, 12 Jun 2013 11:30:28 +0000 (+0200) Subject: Rename V4IR::InstructionSelection to V4IR::IRDecoder. X-Git-Tag: upstream/5.2.1~669^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=defa077c93ccfd128433715b078294df7609afe6;p=platform%2Fupstream%2Fqtdeclarative.git Rename V4IR::InstructionSelection to V4IR::IRDecoder. Now it can be used by classes that want to walk the IR but do not generate instructions, without causing confusion. Change-Id: Idb220a1aee3ba2bbcd43bdeecd28946d567c9f3c Reviewed-by: Simon Hausmann --- diff --git a/src/qml/qml/v4/moth/qv4isel_moth_p.h b/src/qml/qml/v4/moth/qv4isel_moth_p.h index cd13f6b..9c17245 100644 --- a/src/qml/qml/v4/moth/qv4isel_moth_p.h +++ b/src/qml/qml/v4/moth/qv4isel_moth_p.h @@ -57,7 +57,7 @@ namespace Moth { class StackSlotAllocator; class Q_QML_EXPORT InstructionSelection: - public V4IR::InstructionSelection, + public V4IR::IRDecoder, public EvalInstructionSelection { public: diff --git a/src/qml/qml/v4/qv4isel_masm_p.h b/src/qml/qml/v4/qv4isel_masm_p.h index bef577a..b53b0e5 100644 --- a/src/qml/qml/v4/qv4isel_masm_p.h +++ b/src/qml/qml/v4/qv4isel_masm_p.h @@ -777,7 +777,7 @@ private: }; class Q_QML_EXPORT InstructionSelection: - protected V4IR::InstructionSelection, + protected V4IR::IRDecoder, public EvalInstructionSelection { public: diff --git a/src/qml/qml/v4/qv4isel_p.cpp b/src/qml/qml/v4/qv4isel_p.cpp index 7fc3aff..99c363b 100644 --- a/src/qml/qml/v4/qv4isel_p.cpp +++ b/src/qml/qml/v4/qv4isel_p.cpp @@ -116,7 +116,7 @@ QV4::Function *EvalInstructionSelection::vmFunction(Function *f) { return function; } -void InstructionSelection::visitMove(V4IR::Move *s) +void IRDecoder::visitMove(V4IR::Move *s) { if (s->op == V4IR::OpInvalid) { if (V4IR::Name *n = s->target->asName()) { @@ -241,11 +241,11 @@ void InstructionSelection::visitMove(V4IR::Move *s) assert(!"TODO"); } -InstructionSelection::~InstructionSelection() +IRDecoder::~IRDecoder() { } -void InstructionSelection::visitExp(V4IR::Exp *s) +void IRDecoder::visitExp(V4IR::Exp *s) { if (V4IR::Call *c = s->expr->asCall()) { // These are calls where the result is ignored. @@ -268,7 +268,7 @@ void InstructionSelection::visitExp(V4IR::Exp *s) } } -void InstructionSelection::callBuiltin(V4IR::Call *call, V4IR::Temp *result) +void IRDecoder::callBuiltin(V4IR::Call *call, V4IR::Temp *result) { V4IR::Name *baseName = call->base->asName(); assert(baseName != 0); diff --git a/src/qml/qml/v4/qv4isel_p.h b/src/qml/qml/v4/qv4isel_p.h index 28ec63c..ca49b4c 100644 --- a/src/qml/qml/v4/qv4isel_p.h +++ b/src/qml/qml/v4/qv4isel_p.h @@ -88,10 +88,10 @@ public: }; namespace V4IR { -class Q_QML_EXPORT InstructionSelection: protected V4IR::StmtVisitor +class Q_QML_EXPORT IRDecoder: protected V4IR::StmtVisitor { public: - virtual ~InstructionSelection() = 0; + virtual ~IRDecoder() = 0; virtual void visitPhi(V4IR::Phi *) {}