Bug 547140, part 6 - Remove flags argument from JSObject::hasProperty. r=Waldo.

This commit is contained in:
Jason Orendorff 2014-04-25 16:11:03 -05:00
Родитель c94653e3df
Коммит 5d9ff80242
4 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -166,22 +166,22 @@ fun_enumerate(JSContext *cx, HandleObject obj)
if (!obj->isBoundFunction() && !obj->as<JSFunction>().isArrow()) {
id = NameToId(cx->names().prototype);
if (!JSObject::hasProperty(cx, obj, id, &found, 0))
if (!JSObject::hasProperty(cx, obj, id, &found))
return false;
}
id = NameToId(cx->names().length);
if (!JSObject::hasProperty(cx, obj, id, &found, 0))
if (!JSObject::hasProperty(cx, obj, id, &found))
return false;
id = NameToId(cx->names().name);
if (!JSObject::hasProperty(cx, obj, id, &found, 0))
if (!JSObject::hasProperty(cx, obj, id, &found))
return false;
for (unsigned i = 0; i < ArrayLength(poisonPillProps); i++) {
const uint16_t offset = poisonPillProps[i];
id = NameToId(AtomStateOffsetToName(cx->names(), offset));
if (!JSObject::hasProperty(cx, obj, id, &found, 0))
if (!JSObject::hasProperty(cx, obj, id, &found))
return false;
}

Просмотреть файл

@ -291,7 +291,7 @@ js::GetFirstArgumentAsObject(JSContext *cx, const CallArgs &args, const char *me
static bool
HasProperty(JSContext *cx, HandleObject obj, HandleId id, MutableHandleValue vp, bool *foundp)
{
if (!JSObject::hasProperty(cx, obj, id, foundp, 0))
if (!JSObject::hasProperty(cx, obj, id, foundp))
return false;
if (!*foundp) {
vp.setUndefined();

Просмотреть файл

@ -817,7 +817,7 @@ class JSObject : public js::ObjectImpl
MOZ_ALWAYS_INLINE void finalize(js::FreeOp *fop);
static inline bool hasProperty(JSContext *cx, js::HandleObject obj,
js::HandleId id, bool *foundp, unsigned flags = 0);
js::HandleId id, bool *foundp);
/*
* Allocate and free an object slot.

Просмотреть файл

@ -582,11 +582,10 @@ JSObject::finish(js::FreeOp *fop)
/* static */ inline bool
JSObject::hasProperty(JSContext *cx, js::HandleObject obj,
js::HandleId id, bool *foundp, unsigned flags)
js::HandleId id, bool *foundp)
{
JS::RootedObject pobj(cx);
js::RootedShape prop(cx);
JSAutoResolveFlags rf(cx, flags);
if (!lookupGeneric(cx, obj, id, &pobj, &prop)) {
*foundp = false; /* initialize to shut GCC up */
return false;