Remove Unboxed Object code from /vm, Part 3.

This commit is contained in:
wolfbeast 2019-06-25 11:15:11 +00:00 committed by Roy Tam
commit aa89a14709
18 changed files with 13 additions and 1560 deletions

View file

@ -4970,11 +4970,6 @@ js::NewObjectOperationWithTemplate(JSContext* cx, HandleObject templateObject)
NewObjectKind newKind = templateObject->group()->shouldPreTenure() ? TenuredObject : GenericObject;
if (templateObject->group()->maybeUnboxedLayout()) {
RootedObjectGroup group(cx, templateObject->group());
return UnboxedPlainObject::create(cx, group, newKind);
}
JSObject* obj = CopyInitializerObject(cx, templateObject.as<PlainObject>(), newKind);
if (!obj)
return nullptr;