From defa077c93ccfd128433715b078294df7609afe6 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 12 Jun 2013 13:30:28 +0200 Subject: [PATCH] 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 --- src/qml/qml/v4/moth/qv4isel_moth_p.h | 2 +- src/qml/qml/v4/qv4isel_masm_p.h | 2 +- src/qml/qml/v4/qv4isel_p.cpp | 8 ++++---- src/qml/qml/v4/qv4isel_p.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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 *) {} -- 2.7.4