aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4bytecodegenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator.cpp')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator.cpp b/src/qml/compiler/qv4bytecodegenerator.cpp
index 8f9b062af6..3a023c9989 100644
--- a/src/qml/compiler/qv4bytecodegenerator.cpp
+++ b/src/qml/compiler/qv4bytecodegenerator.cpp
@@ -63,6 +63,15 @@ unsigned BytecodeGenerator::newTemp()
return t;
}
+unsigned BytecodeGenerator::newTempArray(int n)
+{
+ int t = function->currentTemp;
+ function->currentTemp += n;
+ if (function->tempCount < function->currentTemp)
+ function->tempCount = function->currentTemp;
+ return t;
+}
+
QByteArray BytecodeGenerator::finalize()
{
QByteArray code;