aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-08-09 10:41:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-12 07:53:43 +0200
commite14df5bb36fa16bf1f13c0b24a12dc558c5a089b (patch)
tree12e5088f54dec6b9fbaa00f35de4c0a1dac3d335 /src
parent55867c2f0016fc395f91a4df1c8ae32cbf2d11db (diff)
Get rid of unused outer function pointer of QV4::Function
Change-Id: I3ea88d3c259447081d1ac5f85d7da95fed8f02f6 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/compiler/qv4isel_masm.cpp3
-rw-r--r--src/qml/compiler/qv4isel_p.cpp1
-rw-r--r--src/qml/jsruntime/qv4function_p.h2
3 files changed, 0 insertions, 6 deletions
diff --git a/src/qml/compiler/qv4isel_masm.cpp b/src/qml/compiler/qv4isel_masm.cpp
index 4317ba0d54..21c2c73fe7 100644
--- a/src/qml/compiler/qv4isel_masm.cpp
+++ b/src/qml/compiler/qv4isel_masm.cpp
@@ -216,16 +216,13 @@ Assembler::Pointer Assembler::loadTempAddress(RegisterID reg, V4IR::Temp *t)
{
int32_t offset = 0;
int scope = t->scope;
- QV4::Function *f = _vmFunction;
RegisterID context = ContextRegister;
if (scope) {
loadPtr(Address(ContextRegister, offsetof(ExecutionContext, outer)), ScratchRegister);
--scope;
- f = f->outer;
context = ScratchRegister;
while (scope) {
loadPtr(Address(context, offsetof(ExecutionContext, outer)), context);
- f = f->outer;
--scope;
}
}
diff --git a/src/qml/compiler/qv4isel_p.cpp b/src/qml/compiler/qv4isel_p.cpp
index ca8d249f9f..03c0ee750e 100644
--- a/src/qml/compiler/qv4isel_p.cpp
+++ b/src/qml/compiler/qv4isel_p.cpp
@@ -86,7 +86,6 @@ QV4::Function *EvalInstructionSelection::createFunctionMapping(QV4::Function *ou
vmFunction->usesArgumentsObject = irFunction->usesArgumentsObject;
vmFunction->hasNestedFunctions = !irFunction->nestedFunctions.isEmpty();
vmFunction->isStrict = irFunction->isStrict;
- vmFunction->outer = outer;
vmFunction->isNamedExpression = irFunction->isNamedExpression;
vmFunction->sourceFile = irFunction->sourceFile;
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h
index 4dd0533d51..3ff31ed2e3 100644
--- a/src/qml/jsruntime/qv4function_p.h
+++ b/src/qml/jsruntime/qv4function_p.h
@@ -99,7 +99,6 @@ struct Function {
QVector<Value> generatedValues;
QVector<String *> identifiers;
QVector<Function *> nestedFunctions;
- Function *outer;
Lookup *lookups;
@@ -117,7 +116,6 @@ struct Function {
, code(0)
, codeData(0)
, codeSize(0)
- , outer(0)
, lookups(0)
, hasNestedFunctions(0)
, hasDirectEval(false)