Changeset 289166 in webkit for trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
- Timestamp:
- Feb 6, 2022, 4:34:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
r288541 r289166 662 662 if (p) { 663 663 // Build a list of getter/setter pairs to try to put them at the same time. If we encounter 664 // a computed property or a spread, just emit everything as that may override previous values. 664 // a constant property by the same name as accessor or a computed property or a spread, 665 // just emit everything as that may override previous values. 665 666 bool canOverrideProperties = false; 666 667 … … 676 677 } 677 678 678 if (node->m_type & PropertyNode::Constant) 679 GetterSetterMap& map = node->isStaticClassProperty() ? staticMap : instanceMap; 680 if (node->m_type & PropertyNode::Constant) { 681 if (map.contains(node->name()->impl())) { 682 canOverrideProperties = true; 683 break; 684 } 679 685 continue; 686 } 680 687 681 688 // Duplicates are possible. 682 689 GetterSetterPair pair(node, static_cast<PropertyNode*>(nullptr)); 683 GetterSetterMap& map = node->isStaticClassProperty() ? staticMap : instanceMap;684 690 GetterSetterMap::AddResult result = map.add(node->name()->impl(), pair); 685 691 auto& resultPair = result.iterator->value;
Note:
See TracChangeset
for help on using the changeset viewer.