summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-05 18:20:26 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-08 18:58:48 +0000
commit22eb1fc012ab1e9b96de293290c78087fe958a8a (patch)
treeb0d245ce36c45f68a06f3923b83725bbc762b076 /src/qml/compiler/qv4codegen.cpp
parent99783cd6dec326058b8db345145b1f8f71cfb6f0 (diff)
downloadqtdeclarative-22eb1fc012ab1e9b96de293290c78087fe958a8a.tar.gz
Move the function to call into the accumulator
Change-Id: Ie84f3f029111b17d62912c653edc35b4cc2de026 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index d044244322..d30fa40e7f 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -1060,11 +1060,13 @@ bool Codegen::visit(CallExpression *ast)
bytecodeGenerator->addInstruction(call);
}
} else {
+ base.loadInAccumulator();
+
Instruction::CallValue call;
- call.dest = base.stackSlot();
call.callData = calldata;
bytecodeGenerator->addInstruction(call);
}
+
_expr.setResult(Reference::fromAccumulator(this));
return false;
}