mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +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_NativeAdd:
|
||||
case ICStub::SetProp_Unboxed: {
|
||||
MOZ_ASSERT(obj->isNative() || obj->is<UnboxedPlainObject>());
|
||||
MOZ_ASSERT(obj->isNative());
|
||||
jsbytecode* pc = stub->getChainFallback()->icEntry()->pc(script);
|
||||
if (*pc == JSOP_SETALIASEDVAR || *pc == JSOP_INITALIASEDLEXICAL)
|
||||
id = NameToId(EnvironmentCoordinateName(cx->caches.envCoordinateNameCache, script, pc));
|
||||
|
|
|
|||
|
|
@ -112,13 +112,6 @@ JSCompartment::~JSCompartment()
|
|||
js_delete(nonSyntacticLexicalEnvironments_),
|
||||
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--;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue