aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-01-10 20:51:15 +0100
committerLars Knoll <lars.knoll@digia.com>2015-01-21 13:18:47 +0100
commit36662b60b09f636c3623057f8116e862f94ff440 (patch)
tree1a8a1ee74db89745ea3e327f70229b6b29bb2e62 /src/qml/jsruntime/qv4functionobject.cpp
parent85bf8d732b9651ce7b88d5464b8b3aae138e1893 (diff)
Remove all the setVTable() calls that aren't required anymore
The memory manager's allocation methods now set this up correctly for us :) Change-Id: I8492bf732df601f95a1a851fb3804127ffc83935 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp
index 3f1f9e189c..5c5674d380 100644
--- a/src/qml/jsruntime/qv4functionobject.cpp
+++ b/src/qml/jsruntime/qv4functionobject.cpp
@@ -216,7 +216,6 @@ DEFINE_OBJECT_VTABLE(FunctionCtor);
Heap::FunctionCtor::FunctionCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("Function"))
{
- setVTable(QV4::FunctionCtor::staticVTable());
}
// 15.3.2
@@ -390,7 +389,6 @@ DEFINE_OBJECT_VTABLE(ScriptFunction);
Heap::ScriptFunction::ScriptFunction(QV4::ExecutionContext *scope, Function *function)
: Heap::SimpleScriptFunction(scope, function, true)
{
- setVTable(QV4::ScriptFunction::staticVTable());
}
ReturnedValue ScriptFunction::construct(Managed *that, CallData *callData)
@@ -452,8 +450,6 @@ DEFINE_OBJECT_VTABLE(SimpleScriptFunction);
Heap::SimpleScriptFunction::SimpleScriptFunction(QV4::ExecutionContext *scope, Function *function, bool createProto)
: Heap::FunctionObject(scope, function, createProto)
{
- setVTable(QV4::SimpleScriptFunction::staticVTable());
-
this->function = function;
function->compilationUnit->addref();
Q_ASSERT(function);
@@ -570,7 +566,6 @@ Heap::BuiltinFunction::BuiltinFunction(QV4::ExecutionContext *scope, QV4::String
: Heap::FunctionObject(scope, name)
, code(code)
{
- setVTable(QV4::BuiltinFunction::staticVTable());
}
ReturnedValue BuiltinFunction::construct(Managed *f, CallData *)
@@ -631,7 +626,6 @@ Heap::BoundFunction::BoundFunction(QV4::ExecutionContext *scope, QV4::FunctionOb
, boundArgs(boundArgs ? boundArgs->d() : 0)
{
this->boundThis = boundThis;
- setVTable(QV4::BoundFunction::staticVTable());
Scope s(scope);
ScopedObject f(s, this);