aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2017-08-03 11:40:33 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-08-03 11:15:43 +0000
commita88bc4e5aa0dfbf71cbe53c1dd8bfbae4d2a90f6 (patch)
treef7bdab35ea616050c5c00f245a74ea2636fc98fb /src/qml/compiler/qv4codegen_p.h
parenteabcd4c2dd15e120aa5b79eb66a2af394e3a55c1 (diff)
Where applicable, rename Temp* to Register*
Change-Id: Ib7839ac09f520aaff3fadfdb37ea63d85a257bfd Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r--src/qml/compiler/qv4codegen_p.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h
index 4187a96719..2a482196ca 100644
--- a/src/qml/compiler/qv4codegen_p.h
+++ b/src/qml/compiler/qv4codegen_p.h
@@ -209,7 +209,7 @@ public:
static Reference fromStackSlot(Codegen *cg, int tempIndex = -1, bool isLocal = false) {
Reference r(cg, StackSlot);
if (tempIndex == -1)
- tempIndex = cg->bytecodeGenerator->newTemp();
+ tempIndex = cg->bytecodeGenerator->newRegister();
r.theStackSlot = Moth::StackSlot::create(tempIndex);
r.stackSlotIsLocal = isLocal;
return r;
@@ -328,15 +328,15 @@ public:
void storeAccumulator() const;
};
- struct TempScope {
- TempScope(Codegen *cg)
+ struct RegisterScope {
+ RegisterScope(Codegen *cg)
: generator(cg->bytecodeGenerator),
- tempCountForScope(generator->currentTemp) {}
- ~TempScope() {
- generator->currentTemp = tempCountForScope;
+ regCountForScope(generator->currentReg) {}
+ ~RegisterScope() {
+ generator->currentReg = regCountForScope;
}
BytecodeGenerator *generator;
- int tempCountForScope;
+ int regCountForScope;
};
struct ObjectPropertyValue {