Rename V4IR::InstructionSelection to V4IR::IRDecoder.
authorErik Verbruggen <erik.verbruggen@me.com>
Wed, 12 Jun 2013 11:30:28 +0000 (13:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 5 Jul 2013 10:46:42 +0000 (12:46 +0200)
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 <simon.hausmann@digia.com>
src/qml/qml/v4/moth/qv4isel_moth_p.h
src/qml/qml/v4/qv4isel_masm_p.h
src/qml/qml/v4/qv4isel_p.cpp
src/qml/qml/v4/qv4isel_p.h

index cd13f6b..9c17245 100644 (file)
@@ -57,7 +57,7 @@ namespace Moth {
 class StackSlotAllocator;
 
 class Q_QML_EXPORT InstructionSelection:
-        public V4IR::InstructionSelection,
+        public V4IR::IRDecoder,
         public EvalInstructionSelection
 {
 public:
index bef577a..b53b0e5 100644 (file)
@@ -777,7 +777,7 @@ private:
 };
 
 class Q_QML_EXPORT InstructionSelection:
-        protected V4IR::InstructionSelection,
+        protected V4IR::IRDecoder,
         public EvalInstructionSelection
 {
 public:
index 7fc3aff..99c363b 100644 (file)
@@ -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);
index 28ec63c..ca49b4c 100644 (file)
@@ -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 *) {}