summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index a90dca4884..321cf21c54 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -3965,70 +3965,6 @@ void Codegen::RValue::loadInAccumulator() const
}
-Codegen::Reference::Reference(const Codegen::Reference &other)
-{
- *this = other;
-}
-
-Codegen::Reference &Codegen::Reference::operator =(const Reference &other)
-{
- type = other.type;
-
- switch (type) {
- case Invalid:
- case Accumulator:
- break;
- case Super:
- break;
- case SuperProperty:
- property = other.property;
- break;
- case StackSlot:
- theStackSlot = other.theStackSlot;
- break;
- case ScopedLocal:
- index = other.index;
- scope = other.scope;
- break;
- case Name:
- // name is always copied
- break;
- case Member:
- propertyBase = other.propertyBase;
- propertyNameIndex = other.propertyNameIndex;
- break;
- case Subscript:
- elementBase = other.elementBase;
- elementSubscript = other.elementSubscript;
- break;
- case Import:
- index = other.index;
- break;
- case Const:
- constant = other.constant;
- break;
- case QmlScopeObject:
- case QmlContextObject:
- qmlBase = other.qmlBase;
- qmlCoreIndex = other.qmlCoreIndex;
- qmlNotifyIndex = other.qmlNotifyIndex;
- capturePolicy = other.capturePolicy;
- break;
- }
-
- // keep loaded reference
- isArgOrEval = other.isArgOrEval;
- codegen = other.codegen;
- isReadonly = other.isReadonly;
- isReferenceToConst = other.isReferenceToConst;
- name = other.name;
- requiresTDZCheck = other.requiresTDZCheck;
- stackSlotIsLocalOrArgument = other.stackSlotIsLocalOrArgument;
- isVolatile = other.isVolatile;
- global = other.global;
- return *this;
-}
-
bool Codegen::Reference::operator==(const Codegen::Reference &other) const
{
if (type != other.type)