Title: [235742] trunk/Source/_javascript_Core
Revision
235742
Author
[email protected]
Date
2018-09-06 10:46:48 -0700 (Thu, 06 Sep 2018)

Log Message

Gardening: only visit m_cachedStructureID if it's not null.
https://bugs.webkit.org/show_bug.cgi?id=189124
<rdar://problem/43863605>

Not reviewed.

* runtime/JSPropertyNameEnumerator.cpp:
(JSC::JSPropertyNameEnumerator::visitChildren):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (235741 => 235742)


--- trunk/Source/_javascript_Core/ChangeLog	2018-09-06 16:56:13 UTC (rev 235741)
+++ trunk/Source/_javascript_Core/ChangeLog	2018-09-06 17:46:48 UTC (rev 235742)
@@ -1,3 +1,14 @@
+2018-09-06  Mark Lam  <[email protected]>
+
+        Gardening: only visit m_cachedStructureID if it's not null.
+        https://bugs.webkit.org/show_bug.cgi?id=189124
+        <rdar://problem/43863605>
+
+        Not reviewed.
+
+        * runtime/JSPropertyNameEnumerator.cpp:
+        (JSC::JSPropertyNameEnumerator::visitChildren):
+
 2018-09-06  Tomas Popela  <[email protected]>
 
         [JSC] Build broken after r234975 on s390x, ppc64le, armv7hl

Modified: trunk/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.cpp (235741 => 235742)


--- trunk/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.cpp	2018-09-06 16:56:13 UTC (rev 235741)
+++ trunk/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.cpp	2018-09-06 17:46:48 UTC (rev 235742)
@@ -94,8 +94,10 @@
         visitor.append(propertyName);
     visitor.append(thisObject->m_prototypeChain);
 
-    VM& vm = visitor.vm();
-    visitor.appendUnbarriered(vm.getStructure(thisObject->cachedStructureID()));
+    if (thisObject->cachedStructureID()) {
+        VM& vm = visitor.vm();
+        visitor.appendUnbarriered(vm.getStructure(thisObject->cachedStructureID()));
+    }
 }
 
 } // namespace JSC
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to