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-18 10:29:34 +0000
commite9aac71c6d7fa67c7581e2bd75accae5a9699165 (patch)
tree4be98a3e8e1e87f974058bce82fe060b2db1885c /js/src/vm/Interpreter.cpp
parent85f9a95ddbc39a1b120eeb8280685e1ae40dc5dc (diff)
downloadUXP-e9aac71c6d7fa67c7581e2bd75accae5a9699165.tar
UXP-e9aac71c6d7fa67c7581e2bd75accae5a9699165.tar.gz
UXP-e9aac71c6d7fa67c7581e2bd75accae5a9699165.tar.lz
UXP-e9aac71c6d7fa67c7581e2bd75accae5a9699165.tar.xz
UXP-e9aac71c6d7fa67c7581e2bd75accae5a9699165.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;