Title: [235745] branches/safari-606-branch/Source/_javascript_Core
- Revision
- 235745
- Author
- [email protected]
- Date
- 2018-09-06 11:07:22 -0700 (Thu, 06 Sep 2018)
Log Message
Cherry-pick r235742. rdar://problem/44169344
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):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-606-branch/Source/_javascript_Core/ChangeLog (235744 => 235745)
--- branches/safari-606-branch/Source/_javascript_Core/ChangeLog 2018-09-06 18:03:31 UTC (rev 235744)
+++ branches/safari-606-branch/Source/_javascript_Core/ChangeLog 2018-09-06 18:07:22 UTC (rev 235745)
@@ -1,3 +1,31 @@
+2018-09-06 Babak Shafiei <[email protected]>
+
+ Cherry-pick r235742. rdar://problem/44169344
+
+ 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):
+
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 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 Mark Lam <[email protected]>
Cherry-pick r235254, r235419, r235666. rdar://problem/44169332
Modified: branches/safari-606-branch/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.cpp (235744 => 235745)
--- branches/safari-606-branch/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.cpp 2018-09-06 18:03:31 UTC (rev 235744)
+++ branches/safari-606-branch/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.cpp 2018-09-06 18:07:22 UTC (rev 235745)
@@ -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