Changeset 226650 in webkit for trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
- Timestamp:
- Jan 9, 2018, 10:49:25 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
r226310 r226650 2 2 * Copyright (C) 1999-2002 Harri Porten ([email protected]) 3 3 * Copyright (C) 2001 Peter Kelly ([email protected]) 4 * Copyright (C) 2003-201 7Apple Inc. All rights reserved.4 * Copyright (C) 2003-2018 Apple Inc. All rights reserved. 5 5 * Copyright (C) 2007 Cameron Zwarich ([email protected]) 6 6 * Copyright (C) 2007 Maks Orlovich … … 540 540 GetterSetterPair pair(node, static_cast<PropertyNode*>(nullptr)); 541 541 GetterSetterMap::AddResult result = map.add(node->name()->impl(), pair); 542 auto& resultPair = result.iterator->value; 542 543 if (!result.isNewEntry) { 543 if (result.iterator->value.first->m_type == node->m_type) 544 result.iterator->value.first = node; 545 else 546 result.iterator->value.second = node; 544 if (resultPair.first->m_type == node->m_type) { 545 resultPair.first->setIsOverriddenByDuplicate(); 546 resultPair.first = node; 547 } else { 548 if (resultPair.second) 549 resultPair.second->setIsOverriddenByDuplicate(); 550 resultPair.second = node; 551 } 547 552 } 548 553 } … … 596 601 597 602 // Was this already generated as a part of its partner? 598 if (pair.second == node )603 if (pair.second == node || node->isOverriddenByDuplicate()) 599 604 continue; 600 605
Note:
See TracChangeset
for help on using the changeset viewer.