Unreviewed, ByValInfo is only used in JIT enabled environments
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Jul 2016 07:59:29 +0000 (07:59 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Jul 2016 07:59:29 +0000 (07:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=158908

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::stronglyVisitStrongReferences):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203897 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/CodeBlock.cpp

index 31e31ff..51836c3 100644 (file)
@@ -1,3 +1,11 @@
+2016-07-29  Yusuke Suzuki  <utatane.tea@gmail.com>
+
+        Unreviewed, ByValInfo is only used in JIT enabled environments
+        https://bugs.webkit.org/show_bug.cgi?id=158908
+
+        * bytecode/CodeBlock.cpp:
+        (JSC::CodeBlock::stronglyVisitStrongReferences):
+
 2016-07-28  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         JSC::Symbol should be hash-consed
index 7ea5357..3a08943 100644 (file)
@@ -3102,8 +3102,10 @@ void CodeBlock::stronglyVisitStrongReferences(SlotVisitor& visitor)
     for (unsigned i = 0; i < m_objectAllocationProfiles.size(); ++i)
         m_objectAllocationProfiles[i].visitAggregate(visitor);
 
+#if ENABLE(JIT)
     for (ByValInfo* byValInfo : m_byValInfos)
         visitor.append(&byValInfo->cachedSymbol);
+#endif
 
 #if ENABLE(DFG_JIT)
     if (JITCode::isOptimizingJIT(jitType()))