aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4bytecodegenerator_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2017-08-03 12:11:41 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-08-03 11:15:48 +0000
commit40aa22e0fd8234a7a71abf0ef8f42524d306e0df (patch)
treefce9a4448cc348dcbf99eebca2e1827c21b0d6c6 /src/qml/compiler/qv4bytecodegenerator_p.h
parenta88bc4e5aa0dfbf71cbe53c1dd8bfbae4d2a90f6 (diff)
Store arguments in the stack frame before the locals/temps
All escaping arguments will still be loaded/stored from/to the CallData, but this is not the common case. In a subsequent patch we can make the caller prepare the stack frame, and for the common case we don't even need to copy arguments around. Change-Id: I3fbb6fe575a564d05a9fd5dcc0c8f4129eac3bc2 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator_p.h')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator_p.h b/src/qml/compiler/qv4bytecodegenerator_p.h
index bfb1ada6e4..81b64f96da 100644
--- a/src/qml/compiler/qv4bytecodegenerator_p.h
+++ b/src/qml/compiler/qv4bytecodegenerator_p.h
@@ -195,6 +195,7 @@ public:
int newRegister();
int newRegisterArray(int n);
+ int registerCount() const { return regCount; }
QByteArray finalize();