diff options
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp index 3b0dac0766..d6f2716bbc 100644 --- a/src/qml/compiler/qv4codegen.cpp +++ b/src/qml/compiler/qv4codegen.cpp @@ -23,8 +23,6 @@ #include <cmath> #include <iostream> -static const bool disable_lookups = false; - #ifdef CONST #undef CONST #endif @@ -2066,7 +2064,7 @@ void Codegen::handleCall(Reference &base, Arguments calldata, int slotForFunctio //### Do we really need all these call instructions? can's we load the callee in a temp? if (base.type == Reference::Member) { - if (!disable_lookups && useFastLookups) { + if (useFastLookups) { Instruction::CallPropertyLookup call; call.base = base.propertyBase.stackSlot(); call.lookupIndex = registerGetterLookup( @@ -2095,7 +2093,7 @@ void Codegen::handleCall(Reference &base, Arguments calldata, int slotForFunctio call.argc = calldata.argc; call.argv = calldata.argv; bytecodeGenerator->addInstruction(call); - } else if (!disable_lookups && useFastLookups && base.global) { + } else if (useFastLookups && base.global) { if (base.qmlGlobal) { Instruction::CallQmlContextPropertyLookup call; call.index = registerQmlContextPropertyGetterLookup( @@ -4566,7 +4564,7 @@ void Codegen::Reference::storeAccumulator() const } } return; case Member: - if (!disable_lookups && codegen->useFastLookups) { + if (codegen->useFastLookups) { Instruction::SetLookup store; store.base = propertyBase.stackSlot(); store.index = codegen->registerSetterLookup(propertyNameIndex); @@ -4684,7 +4682,7 @@ QT_WARNING_POP if (sourceLocation.isValid()) codegen->bytecodeGenerator->setLocation(sourceLocation); - if (!disable_lookups && global) { + if (global) { if (qmlGlobal) { Instruction::LoadQmlContextPropertyLookup load; load.index = codegen->registerQmlContextPropertyGetterLookup( @@ -4709,7 +4707,7 @@ QT_WARNING_POP if (sourceLocation.isValid()) codegen->bytecodeGenerator->setLocation(sourceLocation); - if (!disable_lookups && codegen->useFastLookups) { + if (codegen->useFastLookups) { if (optionalChainJumpLabel->isValid()) { // If we got a valid jump label, this means it's an optional lookup auto jump = codegen->bytecodeGenerator->jumpOptionalLookup( |