aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4bytecodegenerator.cpp
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.cpp
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.cpp')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator.cpp b/src/qml/compiler/qv4bytecodegenerator.cpp
index 1fa1852d80..c9b7c4ae7e 100644
--- a/src/qml/compiler/qv4bytecodegenerator.cpp
+++ b/src/qml/compiler/qv4bytecodegenerator.cpp
@@ -75,11 +75,6 @@ QByteArray BytecodeGenerator::finalize()
{
QByteArray code;
- Instruction::InitStackFrame init;
- init.instructionType = Instr::InitStackFrame;
- init.value = regCount;
- code.append(reinterpret_cast<const char *>(&init), InstrMeta<Instr::InitStackFrame>::Size);
-
// content
QVector<int> instructionOffsets;
instructionOffsets.reserve(instructions.size());