void Lookup::getterGeneric(QV4::Lookup *l, ExecutionContext *ctx, QV4::Value *result, const QV4::Value &object)
{
if (Object *o = object.asObject()) {
- o->getLookup(ctx, l, result);
+ o->getLookup(l, result);
return;
}
void Lookup::setterGeneric(Lookup *l, ExecutionContext *ctx, const Value &object, const Value &value)
{
Object *o = object.toObject(ctx);
- o->setLookup(ctx, l, value);
+ o->setLookup(l, value);
return;
}
context->throwTypeError();
}
-void Managed::getLookup(Managed *, ExecutionContext *context, Lookup *, Value *)
+void Managed::getLookup(Managed *m, Lookup *, Value *)
{
- context->throwTypeError();
+ m->engine()->current->throwTypeError();
}
-void Managed::setLookup(Managed *, ExecutionContext *ctx, Lookup *, const Value &)
+void Managed::setLookup(Managed *m, Lookup *, const Value &)
{
- ctx->throwTypeError();
+ m->engine()->current->throwTypeError();
}
bool Managed::isEqualTo(Managed *, Managed *)
PropertyAttributes (*queryIndexed)(const Managed *, uint index);
bool (*deleteProperty)(Managed *m, String *name);
bool (*deleteIndexedProperty)(Managed *m, uint index);
- void (*getLookup)(Managed *m, ExecutionContext *ctx, Lookup *l, Value *result);
- void (*setLookup)(Managed *m, ExecutionContext *ctx, Lookup *l, const Value &v);
+ void (*getLookup)(Managed *m, Lookup *l, Value *result);
+ void (*setLookup)(Managed *m, Lookup *l, const Value &v);
bool (*isEqualTo)(Managed *m, Managed *other);
Property *(*advanceIterator)(Managed *m, ObjectIterator *it, String **name, uint *index, PropertyAttributes *attributes);
const char *className;
{ return vtbl->deleteProperty(this, name); }
bool deleteIndexedProperty(uint index)
{ return vtbl->deleteIndexedProperty(this, index); }
- void getLookup(ExecutionContext *ctx, Lookup *l, Value *result)
- { vtbl->getLookup(this, ctx, l, result); }
- void setLookup(ExecutionContext *ctx, Lookup *l, const Value &v)
- { vtbl->setLookup(this, ctx, l, v); }
+ void getLookup(Lookup *l, Value *result)
+ { vtbl->getLookup(this, l, result); }
+ void setLookup(Lookup *l, const Value &v)
+ { vtbl->setLookup(this, l, v); }
bool isEqualTo(Managed *other)
{ return vtbl->isEqualTo(this, other); }
static bool hasInstance(Managed *that, const Value &value);
static Value construct(Managed *, ExecutionContext *context, Value *, int);
static Value call(Managed *, ExecutionContext *, const Value &, Value *, int);
- static void getLookup(Managed *, ExecutionContext *context, Lookup *, Value *);
- static void setLookup(Managed *, ExecutionContext *ctx, Lookup *l, const Value &v);
+ static void getLookup(Managed *m, Lookup *, Value *);
+ static void setLookup(Managed *m, Lookup *l, const Value &v);
static bool isEqualTo(Managed *m, Managed *other);
uint internalType() const {
return static_cast<Object *>(m)->internalDeleteIndexedProperty(index);
}
-void Object::getLookup(Managed *m, ExecutionContext *ctx, Lookup *l, Value *result)
+void Object::getLookup(Managed *m, Lookup *l, Value *result)
{
Object *o = static_cast<Object *>(m);
PropertyAttributes attrs;
l->getter = Lookup::getterAccessor2;
if (result)
*result = p->value;
- Value res = o->getValue(ctx, p, attrs);
+ Value res = o->getValue(o->engine()->current, p, attrs);
if (result)
*result = res;
return;
}
}
-void Object::setLookup(Managed *m, ExecutionContext *ctx, Lookup *l, const Value &value)
+void Object::setLookup(Managed *m, Lookup *l, const Value &value)
{
Object *o = static_cast<Object *>(m);
}
if (idx != UINT_MAX) {
- o->putValue(ctx, o->memberData + idx, o->internalClass->propertyData[idx], value);
+ o->putValue(o->engine()->current, o->memberData + idx, o->internalClass->propertyData[idx], value);
return;
}
}
- o->put(ctx, l->name, value);
+ o->put(o->engine()->current, l->name, value);
}
Property *Object::advanceIterator(Managed *m, ObjectIterator *it, String **name, uint *index, PropertyAttributes *attrs)
static PropertyAttributes queryIndexed(const Managed *m, uint index);
static bool deleteProperty(Managed *m, String *name);
static bool deleteIndexedProperty(Managed *m, uint index);
- static void getLookup(Managed *m, ExecutionContext *ctx, Lookup *l, Value *result);
- static void setLookup(Managed *m, ExecutionContext *ctx, Lookup *l, const Value &v);
+ static void getLookup(Managed *m, Lookup *l, Value *result);
+ static void setLookup(Managed *m, Lookup *l, const Value &v);
static Property *advanceIterator(Managed *m, ObjectIterator *it, String **name, uint *index, PropertyAttributes *attributes);