aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-03-03 11:51:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-03 20:23:24 +0100
commit292fdc90865e8603e11bbbe3f2870004caeb0e35 (patch)
tree964cfe2ea959c1159618356ce8d99c6f1db03ff1 /src/qml/jsruntime/qv4context.cpp
parentfd8981d835f298306a39c5d32b1050bf8f9b5653 (diff)
Remove nArguments and name from QV4::Function
Saves 12 bytes per Function Change-Id: I9a495805f9201eb6162a520ff5c2defeb73dc37a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r--src/qml/jsruntime/qv4context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp
index cec42e87aa..8a78b18df1 100644
--- a/src/qml/jsruntime/qv4context.cpp
+++ b/src/qml/jsruntime/qv4context.cpp
@@ -153,7 +153,7 @@ String * const *ExecutionContext::variables() const
if (type < Type_SimpleCallContext)
return 0;
QV4::FunctionObject *f = static_cast<const CallContext *>(this)->function;
- return (f && f->function) ? f->function->internalClass->nameMap.constData() + f->function->nArguments : 0;
+ return (f && f->function) ? f->function->internalClass->nameMap.constData() + f->function->compiledFunction->nFormals : 0;
}
unsigned int ExecutionContext::variableCount() const
@@ -392,7 +392,7 @@ ReturnedValue ExecutionContext::getProperty(const StringRef name)
return v.asReturnedValue();
}
if (f->function && f->function->isNamedExpression()
- && name->equals(f->function->name))
+ && name->equals(f->function->name()))
return f.asReturnedValue();
}
@@ -461,7 +461,7 @@ ReturnedValue ExecutionContext::getPropertyAndBase(const StringRef name, ObjectR
}
}
if (f->function && f->function->isNamedExpression()
- && name->equals(f->function->name))
+ && name->equals(f->function->name()))
return c->function->asReturnedValue();
}