summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4isel_p.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-08-16 12:54:30 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-17 09:26:30 +0200
commit3cfc7e0c026faf70eff8e180a2df3a01b34491c0 (patch)
treedcac9d9a70e1664452647f5c165cb2f7a5692692 /src/qml/compiler/qv4isel_p.cpp
parent51e7447481a472ef542e7c6e7b669574ba366a9d (diff)
downloadqtdeclarative-3cfc7e0c026faf70eff8e180a2df3a01b34491c0.tar.gz
Move arguments object creation into the generated code
So far we've been creating the arguments object at runtime in initCallContext(). It's much more efficient to simply add arguments as a local variable in qv4codegen if it's being used and initialize it through a builtin method. Change-Id: I6913f3565adf3aa1917adae8dceef9f50ecf1722 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4isel_p.cpp')
-rw-r--r--src/qml/compiler/qv4isel_p.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4isel_p.cpp b/src/qml/compiler/qv4isel_p.cpp
index c864378844..7194473849 100644
--- a/src/qml/compiler/qv4isel_p.cpp
+++ b/src/qml/compiler/qv4isel_p.cpp
@@ -428,6 +428,10 @@ void IRDecoder::callBuiltin(V4IR::Call *call, V4IR::Temp *result)
callBuiltinDefineObjectLiteral(result, call->args);
return;
+ case V4IR::Name::builtin_setup_argument_object:
+ callBuiltinSetupArgumentObject(result);
+ return;
+
default:
break;
}