OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 // edx: receiver | 1609 // edx: receiver |
1610 // ebx: map | 1610 // ebx: map |
1611 Label try_holey_map; | 1611 Label try_holey_map; |
1612 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, | 1612 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, |
1613 FAST_ELEMENTS, | 1613 FAST_ELEMENTS, |
1614 ebx, | 1614 ebx, |
1615 edi, | 1615 edi, |
1616 &try_holey_map); | 1616 &try_holey_map); |
1617 | 1617 |
1618 ElementsTransitionGenerator:: | 1618 ElementsTransitionGenerator:: |
1619 GenerateMapChangeElementsTransition(masm()); | 1619 GenerateMapChangeElementsTransition(masm(), |
| 1620 DONT_TRACK_ALLOCATION_SITE, |
| 1621 NULL); |
1620 // Restore edi. | 1622 // Restore edi. |
1621 __ mov(edi, FieldOperand(edx, JSArray::kElementsOffset)); | 1623 __ mov(edi, FieldOperand(edx, JSArray::kElementsOffset)); |
1622 __ jmp(&fast_object); | 1624 __ jmp(&fast_object); |
1623 | 1625 |
1624 __ bind(&try_holey_map); | 1626 __ bind(&try_holey_map); |
1625 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, | 1627 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, |
1626 FAST_HOLEY_ELEMENTS, | 1628 FAST_HOLEY_ELEMENTS, |
1627 ebx, | 1629 ebx, |
1628 edi, | 1630 edi, |
1629 &call_builtin); | 1631 &call_builtin); |
1630 ElementsTransitionGenerator:: | 1632 ElementsTransitionGenerator:: |
1631 GenerateMapChangeElementsTransition(masm()); | 1633 GenerateMapChangeElementsTransition(masm(), |
| 1634 DONT_TRACK_ALLOCATION_SITE, |
| 1635 NULL); |
1632 // Restore edi. | 1636 // Restore edi. |
1633 __ mov(edi, FieldOperand(edx, JSArray::kElementsOffset)); | 1637 __ mov(edi, FieldOperand(edx, JSArray::kElementsOffset)); |
1634 __ bind(&fast_object); | 1638 __ bind(&fast_object); |
1635 } else { | 1639 } else { |
1636 __ CheckFastObjectElements(ebx, &call_builtin); | 1640 __ CheckFastObjectElements(ebx, &call_builtin); |
1637 } | 1641 } |
1638 | 1642 |
1639 // Save new length. | 1643 // Save new length. |
1640 __ mov(FieldOperand(edx, JSArray::kLengthOffset), eax); | 1644 __ mov(FieldOperand(edx, JSArray::kLengthOffset), eax); |
1641 | 1645 |
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4160 __ jmp(ic_slow, RelocInfo::CODE_TARGET); | 4164 __ jmp(ic_slow, RelocInfo::CODE_TARGET); |
4161 } | 4165 } |
4162 } | 4166 } |
4163 | 4167 |
4164 | 4168 |
4165 #undef __ | 4169 #undef __ |
4166 | 4170 |
4167 } } // namespace v8::internal | 4171 } } // namespace v8::internal |
4168 | 4172 |
4169 #endif // V8_TARGET_ARCH_IA32 | 4173 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |