DFG implementation of op_strcat should inline rope allocations
[WebKit-https.git] / Source / JavaScriptCore / dfg / DFGAbstractState.cpp
index f4df241..a16259e 100644 (file)
@@ -466,9 +466,6 @@ bool AbstractState::executeEffects(unsigned indexInBlock, Node* node)
             else
                 forNode(node).set(SpecDouble);
             break;
-        case KnownStringUse:
-            forNode(node).set(m_graph.m_globalData.stringStructure.get());
-            break;
         default:
             RELEASE_ASSERT(node->op() == ValueAdd);
             clobberWorld(node->codeOrigin, indexInBlock);
@@ -477,6 +474,11 @@ bool AbstractState::executeEffects(unsigned indexInBlock, Node* node)
         }
         break;
     }
+        
+    case MakeRope: {
+        forNode(node).set(m_graph.m_globalData.stringStructure.get());
+        break;
+    }
             
     case ArithSub: {
         JSValue left = forNode(node->child1()).value();
@@ -1101,10 +1103,6 @@ bool AbstractState::executeEffects(unsigned indexInBlock, Node* node)
         break;
     }
             
-    case StrCat:
-        forNode(node).set(m_graph.m_globalData.stringStructure.get());
-        break;
-            
     case NewArray:
         node->setCanExit(true);
         forNode(node).set(m_graph.globalObjectFor(node->codeOrigin)->arrayStructureForIndexingTypeDuringAllocation(node->indexingType()));