summaryrefslogtreecommitdiffstats
path: root/js/src/vm/Interpreter.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-16 19:55:05 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-16 19:55:05 +0000
commit9cfa398a1eca20f4ebf6bd472ad999860ef12cfc (patch)
tree4f4e114527ac511393f8c197cf7bcd3bf273873c /js/src/vm/Interpreter.cpp
parent7d93d4989f49bfcb1aa6b87f81332332a750c49c (diff)
downloadUXP-9cfa398a1eca20f4ebf6bd472ad999860ef12cfc.tar
UXP-9cfa398a1eca20f4ebf6bd472ad999860ef12cfc.tar.gz
UXP-9cfa398a1eca20f4ebf6bd472ad999860ef12cfc.tar.lz
UXP-9cfa398a1eca20f4ebf6bd472ad999860ef12cfc.tar.xz
UXP-9cfa398a1eca20f4ebf6bd472ad999860ef12cfc.zip
Remove and clean up more code.
Diffstat (limited to 'js/src/vm/Interpreter.cpp')
-rw-r--r--js/src/vm/Interpreter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/src/vm/Interpreter.cpp b/js/src/vm/Interpreter.cpp
index 7d05b2d4c..f4f6c0da4 100644
--- a/js/src/vm/Interpreter.cpp
+++ b/js/src/vm/Interpreter.cpp
@@ -4933,7 +4933,7 @@ js::NewObjectOperation(JSContext* cx, HandleScript script, jsbytecode* pc,
newKind = TenuredObject;
}
- RootedObject obj(cx);
+ RootedPlainObject obj(cx);
if (*pc == JSOP_NEWOBJECT) {
RootedPlainObject baseObject(cx, &script->getObject(pc)->as<PlainObject>());
@@ -5011,9 +5011,6 @@ js::NewArrayOperation(JSContext* cx, HandleScript script, jsbytecode* pc, uint32
MOZ_ASSERT(obj->isSingleton());
} else {
obj->setGroup(group);
-
- if (PreliminaryObjectArray* preliminaryObjects = group->maybePreliminaryObjects())
- preliminaryObjects->registerNewObject(obj);
}
return obj;