PropertyListNode::emitNode duplicates the code to put a constant property
[WebKit-https.git] / Source / JavaScriptCore / parser / Nodes.h
index 6f55b42fa5cce1207e880bead9b0da29614de69b..f9f2604c07f27d68fef46a55052adf5273fb9840 100644 (file)
@@ -504,9 +504,10 @@ namespace JSC {
         PropertyListNode(const JSTokenLocation&, PropertyNode*);
         PropertyListNode(const JSTokenLocation&, PropertyNode*, PropertyListNode*);
 
+    private:
         virtual RegisterID* emitBytecode(BytecodeGenerator&, RegisterID* = 0) override;
+        void emitPutConstantProperty(BytecodeGenerator&, RegisterID*, PropertyNode&);
 
-    private:
         PropertyNode* m_node;
         PropertyListNode* m_next;
     };