aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4runtime.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-07-20 13:58:27 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-07-30 19:46:29 +0000
commitf67ffaad9742cd1fc0d2576de0a2fd20bc48c3e6 (patch)
tree7251caba699d5a212480fba00b01b95bf7e694d6 /src/qml/jsruntime/qv4runtime.cpp
parent21842ecf2de5f13949a06988ef93f777576a96f8 (diff)
Fix AOT byte code generation of unary ops with constants
When generating code for unary operations with constants, then we should produce constants in the bytecode instead of run-time codes even when compiling ahead of time. Change-Id: Ied902f3729eb6602674eac56edafc4372b209923 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r--src/qml/jsruntime/qv4runtime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp
index f387285e37..8e982dae24 100644
--- a/src/qml/jsruntime/qv4runtime.cpp
+++ b/src/qml/jsruntime/qv4runtime.cpp
@@ -1679,6 +1679,7 @@ ReturnedValue Runtime::method_loadQmlImportedScripts(NoThrowEngine *engine)
return Encode::undefined();
return context->importedScripts.value();
}
+#endif // V4_BOOTSTRAP
ReturnedValue Runtime::method_uMinus(const Value &value)
{
@@ -1708,7 +1709,6 @@ ReturnedValue Runtime::method_add(ExecutionEngine *engine, const Value &left, co
return RuntimeHelpers::addHelper(engine, left, right);
}
-#endif // V4_BOOTSTRAP
ReturnedValue Runtime::method_sub(const Value &left, const Value &right)
{