mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Issue #1142 - Cleanup unused debug code for unboxed objects
Also fixes an assertion during compile if debug is enabled since unboxed objects have been removed.
This commit is contained in:
parent
2b5f3e87c8
commit
db85a69fdb
2 changed files with 1 additions and 8 deletions
|
|
@ -289,7 +289,7 @@ DoTypeUpdateFallback(JSContext* cx, BaselineFrame* frame, ICUpdatedStub* stub, H
|
||||||
case ICStub::SetProp_Native:
|
case ICStub::SetProp_Native:
|
||||||
case ICStub::SetProp_NativeAdd:
|
case ICStub::SetProp_NativeAdd:
|
||||||
case ICStub::SetProp_Unboxed: {
|
case ICStub::SetProp_Unboxed: {
|
||||||
MOZ_ASSERT(obj->isNative() || obj->is<UnboxedPlainObject>());
|
MOZ_ASSERT(obj->isNative());
|
||||||
jsbytecode* pc = stub->getChainFallback()->icEntry()->pc(script);
|
jsbytecode* pc = stub->getChainFallback()->icEntry()->pc(script);
|
||||||
if (*pc == JSOP_SETALIASEDVAR || *pc == JSOP_INITALIASEDLEXICAL)
|
if (*pc == JSOP_SETALIASEDVAR || *pc == JSOP_INITALIASEDLEXICAL)
|
||||||
id = NameToId(EnvironmentCoordinateName(cx->caches.envCoordinateNameCache, script, pc));
|
id = NameToId(EnvironmentCoordinateName(cx->caches.envCoordinateNameCache, script, pc));
|
||||||
|
|
|
||||||
|
|
@ -112,13 +112,6 @@ JSCompartment::~JSCompartment()
|
||||||
js_delete(nonSyntacticLexicalEnvironments_),
|
js_delete(nonSyntacticLexicalEnvironments_),
|
||||||
js_free(enumerators);
|
js_free(enumerators);
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
// Avoid assertion destroying the unboxed layouts list if the embedding
|
|
||||||
// leaked GC things.
|
|
||||||
if (!rt->gc.shutdownCollectedEverything())
|
|
||||||
unboxedLayouts.clear();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
runtime_->numCompartments--;
|
runtime_->numCompartments--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue