1320408 - Part 7: Remove JSContext* parameter from JSObject::shouldSplicePrototype.

This commit is contained in:
Gaming4JC 2019-06-08 19:28:18 -04:00 committed by Roy Tam
commit f32edc66ae
3 changed files with 3 additions and 3 deletions

View file

@ -1408,7 +1408,7 @@ FinishObjectClassInit(JSContext* cx, JS::HandleObject ctor, JS::HandleObject pro
* only set the [[Prototype]] if it hasn't already been set.
*/
Rooted<TaggedProto> tagged(cx, TaggedProto(proto));
if (global->shouldSplicePrototype(cx)) {
if (global->shouldSplicePrototype()) {
if (!JSObject::splicePrototype(cx, global, global->getClass(), tagged))
return false;
}

View file

@ -446,7 +446,7 @@ class JSObject : public js::gc::Cell
* For bootstrapping, whether to splice a prototype for Function.prototype
* or the global object.
*/
bool shouldSplicePrototype(JSContext* cx);
bool shouldSplicePrototype();
/*
* Environment chains.

View file

@ -249,7 +249,7 @@ ObjectGroup::useSingletonForAllocationSite(JSScript* script, jsbytecode* pc, con
/////////////////////////////////////////////////////////////////////
bool
JSObject::shouldSplicePrototype(JSContext* cx)
JSObject::shouldSplicePrototype()
{
/*
* During bootstrapping, if inference is enabled we need to make sure not