diff options
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator.cpp')
-rw-r--r-- | src/qml/compiler/qv4bytecodegenerator.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator.cpp b/src/qml/compiler/qv4bytecodegenerator.cpp index 8d5ed671da..1bbd0fdd78 100644 --- a/src/qml/compiler/qv4bytecodegenerator.cpp +++ b/src/qml/compiler/qv4bytecodegenerator.cpp @@ -57,18 +57,18 @@ void BytecodeGenerator::setLocation(const QQmlJS::AST::SourceLocation &loc) unsigned BytecodeGenerator::newTemp() { - int t = function->currentTemp++; - if (function->tempCount < function->currentTemp) - function->tempCount = function->currentTemp; + int t = currentTemp++; + if (tempCount < currentTemp) + tempCount = currentTemp; return t; } unsigned BytecodeGenerator::newTempArray(int n) { - int t = function->currentTemp; - function->currentTemp += n; - if (function->tempCount < function->currentTemp) - function->tempCount = function->currentTemp; + int t = currentTemp; + currentTemp += n; + if (tempCount < currentTemp) + tempCount = currentTemp; return t; } @@ -78,7 +78,7 @@ QByteArray BytecodeGenerator::finalize() Instruction::InitStackFrame init; init.instructionType = Instr::InitStackFrame; - init.value = quint32(function->tempCount); + init.value = quint32(tempCount); code.append(reinterpret_cast<const char *>(&init), InstrMeta<Instr::InitStackFrame>::Size); // content |