aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
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
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')
-rw-r--r--src/qml/jsruntime/qv4argumentsobject_p.h2
-rw-r--r--src/qml/jsruntime/qv4arraybuffer.cpp1
-rw-r--r--src/qml/jsruntime/qv4arraydata_p.h1
-rw-r--r--src/qml/jsruntime/qv4arrayobject.cpp1
-rw-r--r--src/qml/jsruntime/qv4booleanobject.cpp1
-rw-r--r--src/qml/jsruntime/qv4dataview.cpp1
-rw-r--r--src/qml/jsruntime/qv4dateobject.cpp2
-rw-r--r--src/qml/jsruntime/qv4errorobject.cpp8
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp6
-rw-r--r--src/qml/jsruntime/qv4functionobject_p.h1
-rw-r--r--src/qml/jsruntime/qv4globalobject.cpp1
-rw-r--r--src/qml/jsruntime/qv4managed.cpp13
-rw-r--r--src/qml/jsruntime/qv4managed_p.h2
-rw-r--r--src/qml/jsruntime/qv4numberobject.cpp1
-rw-r--r--src/qml/jsruntime/qv4objectiterator_p.h1
-rw-r--r--src/qml/jsruntime/qv4objectproto.cpp1
-rw-r--r--src/qml/jsruntime/qv4qobjectwrapper.cpp3
-rw-r--r--src/qml/jsruntime/qv4regexp.cpp1
-rw-r--r--src/qml/jsruntime/qv4regexpobject.cpp7
-rw-r--r--src/qml/jsruntime/qv4script.cpp4
-rw-r--r--src/qml/jsruntime/qv4stringobject.cpp2
-rw-r--r--src/qml/jsruntime/qv4typedarray.cpp1
-rw-r--r--src/qml/jsruntime/qv4typedarray_p.h1
-rw-r--r--src/qml/jsruntime/qv4value_p.h1
24 files changed, 0 insertions, 63 deletions
diff --git a/src/qml/jsruntime/qv4argumentsobject_p.h b/src/qml/jsruntime/qv4argumentsobject_p.h
index bf5b532216..ca7fdffa6c 100644
--- a/src/qml/jsruntime/qv4argumentsobject_p.h
+++ b/src/qml/jsruntime/qv4argumentsobject_p.h
@@ -79,7 +79,6 @@ Heap::ArgumentsGetterFunction::ArgumentsGetterFunction(QV4::ExecutionContext *sc
: Heap::FunctionObject(scope)
, index(index)
{
- setVTable(QV4::ArgumentsGetterFunction::staticVTable());
}
struct ArgumentsSetterFunction: FunctionObject
@@ -95,7 +94,6 @@ Heap::ArgumentsSetterFunction::ArgumentsSetterFunction(QV4::ExecutionContext *sc
: Heap::FunctionObject(scope)
, index(index)
{
- setVTable(QV4::ArgumentsSetterFunction::staticVTable());
}
diff --git a/src/qml/jsruntime/qv4arraybuffer.cpp b/src/qml/jsruntime/qv4arraybuffer.cpp
index 665d7cfced..60ab527a42 100644
--- a/src/qml/jsruntime/qv4arraybuffer.cpp
+++ b/src/qml/jsruntime/qv4arraybuffer.cpp
@@ -42,7 +42,6 @@ DEFINE_OBJECT_VTABLE(ArrayBuffer);
Heap::ArrayBufferCtor::ArrayBufferCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("ArrayBuffer"))
{
- setVTable(QV4::ArrayBufferCtor::staticVTable());
}
ReturnedValue ArrayBufferCtor::construct(Managed *m, CallData *callData)
diff --git a/src/qml/jsruntime/qv4arraydata_p.h b/src/qml/jsruntime/qv4arraydata_p.h
index e32aea7423..f78d0234cc 100644
--- a/src/qml/jsruntime/qv4arraydata_p.h
+++ b/src/qml/jsruntime/qv4arraydata_p.h
@@ -275,7 +275,6 @@ namespace Heap {
inline SparseArrayData::SparseArrayData(ExecutionEngine *engine)
: ArrayData(engine->emptyClass)
{
- setVTable(QV4::SparseArrayData::staticVTable());
}
inline SparseArrayData::~SparseArrayData()
diff --git a/src/qml/jsruntime/qv4arrayobject.cpp b/src/qml/jsruntime/qv4arrayobject.cpp
index 1186afb77c..078b7fee70 100644
--- a/src/qml/jsruntime/qv4arrayobject.cpp
+++ b/src/qml/jsruntime/qv4arrayobject.cpp
@@ -45,7 +45,6 @@ DEFINE_OBJECT_VTABLE(ArrayCtor);
Heap::ArrayCtor::ArrayCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("Array"))
{
- setVTable(QV4::ArrayCtor::staticVTable());
}
ReturnedValue ArrayCtor::construct(Managed *m, CallData *callData)
diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp
index 6de7059034..0b3ae4e705 100644
--- a/src/qml/jsruntime/qv4booleanobject.cpp
+++ b/src/qml/jsruntime/qv4booleanobject.cpp
@@ -41,7 +41,6 @@ DEFINE_OBJECT_VTABLE(BooleanObject);
Heap::BooleanCtor::BooleanCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("Boolean"))
{
- setVTable(QV4::BooleanCtor::staticVTable());
}
ReturnedValue BooleanCtor::construct(Managed *m, CallData *callData)
diff --git a/src/qml/jsruntime/qv4dataview.cpp b/src/qml/jsruntime/qv4dataview.cpp
index 6bbf9eeade..f50ce768ae 100644
--- a/src/qml/jsruntime/qv4dataview.cpp
+++ b/src/qml/jsruntime/qv4dataview.cpp
@@ -44,7 +44,6 @@ DEFINE_OBJECT_VTABLE(DataView);
Heap::DataViewCtor::DataViewCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("DataView"))
{
- setVTable(QV4::DataViewCtor::staticVTable());
}
ReturnedValue DataViewCtor::construct(Managed *m, CallData *callData)
diff --git a/src/qml/jsruntime/qv4dateobject.cpp b/src/qml/jsruntime/qv4dateobject.cpp
index 7c845fd068..bfc97b12af 100644
--- a/src/qml/jsruntime/qv4dateobject.cpp
+++ b/src/qml/jsruntime/qv4dateobject.cpp
@@ -633,7 +633,6 @@ DEFINE_OBJECT_VTABLE(DateObject);
Heap::DateObject::DateObject(QV4::ExecutionEngine *engine, const QDateTime &date)
: Heap::Object(engine->emptyClass, engine->datePrototype.asObject())
{
- setVTable(QV4::DateObject::staticVTable());
value.setDouble(date.isValid() ? date.toMSecsSinceEpoch() : qSNaN());
}
@@ -647,7 +646,6 @@ DEFINE_OBJECT_VTABLE(DateCtor);
Heap::DateCtor::DateCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("Date"))
{
- setVTable(QV4::DateCtor::staticVTable());
}
ReturnedValue DateCtor::construct(Managed *m, CallData *callData)
diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp
index 2eceab91d6..bf966e5028 100644
--- a/src/qml/jsruntime/qv4errorobject.cpp
+++ b/src/qml/jsruntime/qv4errorobject.cpp
@@ -248,13 +248,11 @@ DEFINE_OBJECT_VTABLE(URIErrorCtor);
Heap::ErrorCtor::ErrorCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("Error"))
{
- setVTable(QV4::ErrorCtor::staticVTable());
}
Heap::ErrorCtor::ErrorCtor(QV4::ExecutionContext *scope, const QString &name)
: Heap::FunctionObject(scope, name)
{
- setVTable(QV4::ErrorCtor::staticVTable());
}
ReturnedValue ErrorCtor::construct(Managed *m, CallData *callData)
@@ -272,7 +270,6 @@ ReturnedValue ErrorCtor::call(Managed *that, CallData *callData)
Heap::EvalErrorCtor::EvalErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("EvalError"))
{
- setVTable(QV4::EvalErrorCtor::staticVTable());
}
ReturnedValue EvalErrorCtor::construct(Managed *m, CallData *callData)
@@ -285,7 +282,6 @@ ReturnedValue EvalErrorCtor::construct(Managed *m, CallData *callData)
Heap::RangeErrorCtor::RangeErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("RangeError"))
{
- setVTable(QV4::RangeErrorCtor::staticVTable());
}
ReturnedValue RangeErrorCtor::construct(Managed *m, CallData *callData)
@@ -298,7 +294,6 @@ ReturnedValue RangeErrorCtor::construct(Managed *m, CallData *callData)
Heap::ReferenceErrorCtor::ReferenceErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("ReferenceError"))
{
- setVTable(QV4::ReferenceErrorCtor::staticVTable());
}
ReturnedValue ReferenceErrorCtor::construct(Managed *m, CallData *callData)
@@ -311,7 +306,6 @@ ReturnedValue ReferenceErrorCtor::construct(Managed *m, CallData *callData)
Heap::SyntaxErrorCtor::SyntaxErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("SyntaxError"))
{
- setVTable(QV4::SyntaxErrorCtor::staticVTable());
}
ReturnedValue SyntaxErrorCtor::construct(Managed *m, CallData *callData)
@@ -324,7 +318,6 @@ ReturnedValue SyntaxErrorCtor::construct(Managed *m, CallData *callData)
Heap::TypeErrorCtor::TypeErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("TypeError"))
{
- setVTable(QV4::TypeErrorCtor::staticVTable());
}
ReturnedValue TypeErrorCtor::construct(Managed *m, CallData *callData)
@@ -337,7 +330,6 @@ ReturnedValue TypeErrorCtor::construct(Managed *m, CallData *callData)
Heap::URIErrorCtor::URIErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("URIError"))
{
- setVTable(QV4::URIErrorCtor::staticVTable());
}
ReturnedValue URIErrorCtor::construct(Managed *m, CallData *callData)
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);
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h
index e806888243..c00597d469 100644
--- a/src/qml/jsruntime/qv4functionobject_p.h
+++ b/src/qml/jsruntime/qv4functionobject_p.h
@@ -198,7 +198,6 @@ Heap::IndexedBuiltinFunction::IndexedBuiltinFunction(QV4::ExecutionContext *scop
code(code)
, index(index)
{
- setVTable(QV4::IndexedBuiltinFunction::staticVTable());
}
diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp
index c521337ce6..823eeda76d 100644
--- a/src/qml/jsruntime/qv4globalobject.cpp
+++ b/src/qml/jsruntime/qv4globalobject.cpp
@@ -341,7 +341,6 @@ DEFINE_OBJECT_VTABLE(EvalFunction);
Heap::EvalFunction::EvalFunction(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, scope->d()->engine->id_eval)
{
- setVTable(QV4::EvalFunction::staticVTable());
Scope s(scope);
ScopedFunctionObject f(s, this);
f->defineReadonlyProperty(s.engine->id_length, Primitive::fromInt32(1));
diff --git a/src/qml/jsruntime/qv4managed.cpp b/src/qml/jsruntime/qv4managed.cpp
index 9aaf73d02f..b783d70163 100644
--- a/src/qml/jsruntime/qv4managed.cpp
+++ b/src/qml/jsruntime/qv4managed.cpp
@@ -144,19 +144,6 @@ QString Managed::className() const
return QString::fromLatin1(s);
}
-void Managed::setVTable(const ManagedVTable *vt)
-{
- d()->vtable = vt;
- Q_ASSERT(internalClass());
-}
-
-void Heap::Base::setVTable(const ManagedVTable *vt)
-{
- vtable = vt;
- Q_ASSERT(internalClass);
-}
-
-
bool Managed::isEqualTo(Managed *, Managed *)
{
return false;
diff --git a/src/qml/jsruntime/qv4managed_p.h b/src/qml/jsruntime/qv4managed_p.h
index 69d81442b7..99d6cdafbb 100644
--- a/src/qml/jsruntime/qv4managed_p.h
+++ b/src/qml/jsruntime/qv4managed_p.h
@@ -278,8 +278,6 @@ public:
QString className() const;
- void setVTable(const ManagedVTable *vt);
-
bool isEqualTo(const Managed *other) const
{ return d()->vtable->isEqualTo(const_cast<Managed *>(this), const_cast<Managed *>(other)); }
diff --git a/src/qml/jsruntime/qv4numberobject.cpp b/src/qml/jsruntime/qv4numberobject.cpp
index 404ad8f61e..67bf92d552 100644
--- a/src/qml/jsruntime/qv4numberobject.cpp
+++ b/src/qml/jsruntime/qv4numberobject.cpp
@@ -48,7 +48,6 @@ DEFINE_OBJECT_VTABLE(NumberObject);
Heap::NumberCtor::NumberCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("Number"))
{
- setVTable(QV4::NumberCtor::staticVTable());
}
ReturnedValue NumberCtor::construct(Managed *m, CallData *callData)
diff --git a/src/qml/jsruntime/qv4objectiterator_p.h b/src/qml/jsruntime/qv4objectiterator_p.h
index f1f70d07a2..cee7024df8 100644
--- a/src/qml/jsruntime/qv4objectiterator_p.h
+++ b/src/qml/jsruntime/qv4objectiterator_p.h
@@ -89,7 +89,6 @@ Heap::ForEachIteratorObject::ForEachIteratorObject(QV4::ExecutionEngine *engine,
: Heap::Object(engine)
, it(engine, workArea, workArea + 1, o, ObjectIterator::EnumerableOnly|ObjectIterator::WithProtoChain)
{
- setVTable(QV4::ForEachIteratorObject::staticVTable());
}
diff --git a/src/qml/jsruntime/qv4objectproto.cpp b/src/qml/jsruntime/qv4objectproto.cpp
index 445d4f7a68..8762935268 100644
--- a/src/qml/jsruntime/qv4objectproto.cpp
+++ b/src/qml/jsruntime/qv4objectproto.cpp
@@ -52,7 +52,6 @@ DEFINE_OBJECT_VTABLE(ObjectCtor);
Heap::ObjectCtor::ObjectCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("Object"))
{
- setVTable(QV4::ObjectCtor::staticVTable());
}
ReturnedValue ObjectCtor::construct(Managed *that, CallData *callData)
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp
index 1248991789..1d6a89a647 100644
--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp
+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp
@@ -236,7 +236,6 @@ Heap::QObjectWrapper::QObjectWrapper(ExecutionEngine *engine, QObject *object)
: Heap::Object(engine)
, object(object)
{
- setVTable(QV4::QObjectWrapper::staticVTable());
}
void QObjectWrapper::initializeBindings(ExecutionEngine *engine)
@@ -1761,7 +1760,6 @@ ReturnedValue QObjectMethod::create(ExecutionContext *scope, QQmlValueTypeWrappe
Heap::QObjectMethod::QObjectMethod(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope)
{
- setVTable(QV4::QObjectMethod::staticVTable());
}
const QMetaObject *Heap::QObjectMethod::metaObject()
@@ -1904,7 +1902,6 @@ Heap::QmlSignalHandler::QmlSignalHandler(QV4::ExecutionEngine *engine, QObject *
, object(object)
, signalIndex(signalIndex)
{
- setVTable(QV4::QmlSignalHandler::staticVTable());
}
DEFINE_OBJECT_VTABLE(QmlSignalHandler);
diff --git a/src/qml/jsruntime/qv4regexp.cpp b/src/qml/jsruntime/qv4regexp.cpp
index c9c220f74a..533703ff29 100644
--- a/src/qml/jsruntime/qv4regexp.cpp
+++ b/src/qml/jsruntime/qv4regexp.cpp
@@ -91,7 +91,6 @@ Heap::RegExp::RegExp(ExecutionEngine* engine, const QString &pattern, bool ignor
, ignoreCase(ignoreCase)
, multiLine(multiline)
{
- setVTable(QV4::RegExp::staticVTable());
const char* error = 0;
JSC::Yarr::YarrPattern yarrPattern(WTF::String(pattern), ignoreCase, multiline, &error);
if (error)
diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp
index 0081664e3b..cd1d1563fa 100644
--- a/src/qml/jsruntime/qv4regexpobject.cpp
+++ b/src/qml/jsruntime/qv4regexpobject.cpp
@@ -68,8 +68,6 @@ DEFINE_OBJECT_VTABLE(RegExpPrototype);
Heap::RegExpObject::RegExpObject(InternalClass *ic, QV4::Object *prototype)
: Heap::Object(ic, prototype)
{
- setVTable(QV4::RegExpObject::staticVTable());
-
Scope scope(ic->engine);
Scoped<QV4::RegExpObject> o(scope, this);
o->d()->value = QV4::RegExp::create(ic->engine, QString(), false, false);
@@ -82,8 +80,6 @@ Heap::RegExpObject::RegExpObject(QV4::ExecutionEngine *engine, QV4::RegExp *valu
, value(value->d())
, global(global)
{
- setVTable(QV4::RegExpObject::staticVTable());
-
Scope scope(engine);
Scoped<QV4::RegExpObject> o(scope, this);
o->init(engine);
@@ -95,8 +91,6 @@ Heap::RegExpObject::RegExpObject(QV4::ExecutionEngine *engine, QV4::RegExp *valu
Heap::RegExpObject::RegExpObject(QV4::ExecutionEngine *engine, const QRegExp &re)
: Heap::Object(engine->emptyClass, engine->regExpPrototype.asObject())
{
- setVTable(QV4::RegExpObject::staticVTable());
-
value = 0;
global = false;
@@ -232,7 +226,6 @@ DEFINE_OBJECT_VTABLE(RegExpCtor);
Heap::RegExpCtor::RegExpCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("RegExp"))
{
- setVTable(QV4::RegExpCtor::staticVTable());
clearLastMatch();
}
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index e8471ca019..f7afd004b9 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -75,7 +75,6 @@ Heap::CompilationUnitHolder::CompilationUnitHolder(ExecutionEngine *engine, Comp
: Heap::Object(engine)
, unit(unit)
{
- setVTable(QV4::CompilationUnitHolder::staticVTable());
}
}
@@ -93,7 +92,6 @@ Heap::QmlBindingWrapper::QmlBindingWrapper(QV4::ExecutionContext *scope, Functio
{
Q_ASSERT(scope->inUse());
- setVTable(QV4::QmlBindingWrapper::staticVTable());
function = f;
if (function)
function->compilationUnit->addref();
@@ -114,8 +112,6 @@ Heap::QmlBindingWrapper::QmlBindingWrapper(QV4::ExecutionContext *scope, QV4::Ob
{
Q_ASSERT(scope->inUse());
- setVTable(QV4::QmlBindingWrapper::staticVTable());
-
Scope s(scope);
Scoped<QV4::QmlBindingWrapper> o(s, this);
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp
index 617670e326..5ce4b5b33c 100644
--- a/src/qml/jsruntime/qv4stringobject.cpp
+++ b/src/qml/jsruntime/qv4stringobject.cpp
@@ -88,7 +88,6 @@ Heap::StringObject::StringObject(ExecutionEngine *engine, const ValueRef val)
value = val;
Q_ASSERT(value.isString());
tmpProperty.value = Primitive::undefinedValue();
- setVTable(QV4::StringObject::staticVTable());
Scope scope(engine);
ScopedObject s(scope, this);
@@ -163,7 +162,6 @@ DEFINE_OBJECT_VTABLE(StringCtor);
Heap::StringCtor::StringCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("String"))
{
- setVTable(QV4::StringCtor::staticVTable());
}
ReturnedValue StringCtor::construct(Managed *m, CallData *callData)
diff --git a/src/qml/jsruntime/qv4typedarray.cpp b/src/qml/jsruntime/qv4typedarray.cpp
index 7aff0b8d61..11b675646d 100644
--- a/src/qml/jsruntime/qv4typedarray.cpp
+++ b/src/qml/jsruntime/qv4typedarray.cpp
@@ -197,7 +197,6 @@ Heap::TypedArrayCtor::TypedArrayCtor(QV4::ExecutionContext *scope, TypedArray::T
: Heap::FunctionObject(scope, QLatin1String(operations[t].name))
, type(t)
{
- setVTable(QV4::TypedArrayCtor::staticVTable());
}
ReturnedValue TypedArrayCtor::construct(Managed *m, CallData *callData)
diff --git a/src/qml/jsruntime/qv4typedarray_p.h b/src/qml/jsruntime/qv4typedarray_p.h
index adc3368243..6c9bcfbba4 100644
--- a/src/qml/jsruntime/qv4typedarray_p.h
+++ b/src/qml/jsruntime/qv4typedarray_p.h
@@ -133,7 +133,6 @@ Heap::TypedArrayPrototype::TypedArrayPrototype(ExecutionEngine *e, TypedArray::T
: Heap::Object(e)
, type(t)
{
- setVTable(QV4::TypedArrayPrototype::staticVTable());
}
} // namespace QV4
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h
index 8ae8676b7b..5a4c1b9ca5 100644
--- a/src/qml/jsruntime/qv4value_p.h
+++ b/src/qml/jsruntime/qv4value_p.h
@@ -61,7 +61,6 @@ struct Q_QML_EXPORT Base {
};
InternalClass *internalClass;
- void setVTable(const ManagedVTable *vt);
inline ReturnedValue asReturnedValue() const;
inline void mark(QV4::ExecutionEngine *engine);