Bug 1112778, part 3 - Rename JSObject::preventExtensions -> js::PreventExtensions and a few others, and move them to jsobj.cpp. Uninline several functions that have no business being inlined. r=Waldo.

This commit is contained in:
Jason Orendorff
2014-12-18 05:26:42 -06:00
parent 2e2ce24f6f
commit 9f1eea4067
21 changed files with 289 additions and 226 deletions

View File

@@ -352,7 +352,7 @@ Snapshot(JSContext *cx, HandleObject pobj_, unsigned flags, AutoIdVector *props)
if (flags & JSITER_OWNONLY)
break;
if (!JSObject::getProto(cx, pobj, &pobj))
if (!GetPrototype(cx, pobj, &pobj))
return false;
} while (pobj != nullptr);
@@ -1163,7 +1163,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
* became visible as a result of this deletion.
*/
RootedObject proto(cx);
if (!JSObject::getProto(cx, obj, &proto))
if (!GetPrototype(cx, obj, &proto))
return false;
if (proto) {
RootedObject obj2(cx);