aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4bytecodegenerator.cpp
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/qv4bytecodegenerator.cpp
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/qv4bytecodegenerator.cpp')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator.cpp b/src/qml/compiler/qv4bytecodegenerator.cpp
index 825d823d3e..1fa1852d80 100644
--- a/src/qml/compiler/qv4bytecodegenerator.cpp
+++ b/src/qml/compiler/qv4bytecodegenerator.cpp
@@ -54,20 +54,20 @@ void BytecodeGenerator::setLocation(const QQmlJS::AST::SourceLocation &loc)
addInstruction(line); //### put line numbers in a side-table, not in the instruction stream
}
-int BytecodeGenerator::newTemp()
+int BytecodeGenerator::newRegister()
{
- int t = currentTemp++;
- if (tempCount < currentTemp)
- tempCount = currentTemp;
+ int t = currentReg++;
+ if (regCount < currentReg)
+ regCount = currentReg;
return t;
}
-int BytecodeGenerator::newTempArray(int n)
+int BytecodeGenerator::newRegisterArray(int n)
{
- int t = currentTemp;
- currentTemp += n;
- if (tempCount < currentTemp)
- tempCount = currentTemp;
+ int t = currentReg;
+ currentReg += n;
+ if (regCount < currentReg)
+ regCount = currentReg;
return t;
}
@@ -77,7 +77,7 @@ QByteArray BytecodeGenerator::finalize()
Instruction::InitStackFrame init;
init.instructionType = Instr::InitStackFrame;
- init.value = tempCount;
+ init.value = regCount;
code.append(reinterpret_cast<const char *>(&init), InstrMeta<Instr::InitStackFrame>::Size);
// content