diff options
| -rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 2 | ||||
| -rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp index 4b766accbd..b0e9d4ce66 100644 --- a/src/qml/compiler/qv4codegen.cpp +++ b/src/qml/compiler/qv4codegen.cpp @@ -151,7 +151,6 @@ Codegen::Reference Codegen::unop(UnaryOperation op, const Reference &expr) if (hasError) return _expr.result(); -#ifndef V4_BOOTSTRAP if (expr.isConstant()) { auto v = Value::fromReturnedValue(expr.constant); if (v.isNumber()) { @@ -169,7 +168,6 @@ Codegen::Reference Codegen::unop(UnaryOperation op, const Reference &expr) } } } -#endif // V4_BOOTSTRAP switch (op) { case UMinus: { 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) { |
