summaryrefslogtreecommitdiffstats
path: root/js/src/gc/Zone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/gc/Zone.cpp')
-rw-r--r--js/src/gc/Zone.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/js/src/gc/Zone.cpp b/js/src/gc/Zone.cpp
index 7681f15c5..f0cdde012 100644
--- a/js/src/gc/Zone.cpp
+++ b/js/src/gc/Zone.cpp
@@ -373,18 +373,18 @@ Zone::fixupAfterMovingGC()
bool
Zone::addTypeDescrObject(JSContext* cx, HandleObject obj)
{
- // Type descriptor objects are always tenured so we don't need post barriers
- // on the set.
- MOZ_ASSERT(!IsInsideNursery(obj));
-
- if (!typeDescrObjects.put(obj)) {
- ReportOutOfMemory(cx);
- return false;
- }
-
- return true;
-}
-
+ // Type descriptor objects are always tenured so we don't need post barriers
+ // on the set.
+ MOZ_ASSERT(!IsInsideNursery(obj));
+
+ if (!typeDescrObjects.put(obj)) {
+ ReportOutOfMemory(cx);
+ return false;
+ }
+
+ return true;
+}
+
ZoneList::ZoneList()
: head(nullptr), tail(nullptr)
{}