summaryrefslogtreecommitdiffstats
path: root/js/src/vm/Interpreter.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-05-16 13:13:36 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-05-16 13:13:36 +0000
commit543fa1674bcb4f8c40f0ef6e4c5514ea161def5a (patch)
tree303beb6028a1169509da1dd6b38afdd081672c93 /js/src/vm/Interpreter.cpp
parenta5c2961c4e8c0459959fc35e493e58be8e7763d6 (diff)
downloadUXP-543fa1674bcb4f8c40f0ef6e4c5514ea161def5a.tar
UXP-543fa1674bcb4f8c40f0ef6e4c5514ea161def5a.tar.gz
UXP-543fa1674bcb4f8c40f0ef6e4c5514ea161def5a.tar.lz
UXP-543fa1674bcb4f8c40f0ef6e4c5514ea161def5a.tar.xz
UXP-543fa1674bcb4f8c40f0ef6e4c5514ea161def5a.zip
Remove Unboxed Objects from vm/ Part 1 + fix deprot
Diffstat (limited to 'js/src/vm/Interpreter.cpp')
-rw-r--r--js/src/vm/Interpreter.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/js/src/vm/Interpreter.cpp b/js/src/vm/Interpreter.cpp
index e6d6630c4..3cf2deb83 100644
--- a/js/src/vm/Interpreter.cpp
+++ b/js/src/vm/Interpreter.cpp
@@ -4111,7 +4111,7 @@ CASE(JSOP_INITHOMEOBJECT)
/* Load the home object */
ReservedRooted<JSObject*> obj(&rootObject0);
obj = &REGS.sp[int(-2 - skipOver)].toObject();
- MOZ_ASSERT(obj->is<PlainObject>() || obj->is<UnboxedPlainObject>() || obj->is<JSFunction>());
+ MOZ_ASSERT(obj->is<PlainObject>() || obj->is<JSFunction>());
func->setExtendedSlot(FunctionExtended::METHOD_HOMEOBJECT_SLOT, ObjectValue(*obj));
}
@@ -4927,15 +4927,10 @@ js::NewObjectOperation(JSContext* cx, HandleScript script, jsbytecode* pc,
return nullptr;
if (group->maybePreliminaryObjects()) {
group->maybePreliminaryObjects()->maybeAnalyze(cx, group);
- if (group->maybeUnboxedLayout())
- group->maybeUnboxedLayout()->setAllocationSite(script, pc);
}
if (group->shouldPreTenure() || group->maybePreliminaryObjects())
newKind = TenuredObject;
-
- if (group->maybeUnboxedLayout())
- return UnboxedPlainObject::create(cx, group, newKind);
}
RootedObject obj(cx);