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 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 // edx: receiver | 1687 // edx: receiver |
1688 // r3: map | 1688 // r3: map |
1689 Label try_holey_map; | 1689 Label try_holey_map; |
1690 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, | 1690 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, |
1691 FAST_ELEMENTS, | 1691 FAST_ELEMENTS, |
1692 r3, | 1692 r3, |
1693 r7, | 1693 r7, |
1694 &try_holey_map); | 1694 &try_holey_map); |
1695 __ mov(r2, receiver); | 1695 __ mov(r2, receiver); |
1696 ElementsTransitionGenerator:: | 1696 ElementsTransitionGenerator:: |
1697 GenerateMapChangeElementsTransition(masm()); | 1697 GenerateMapChangeElementsTransition(masm(), |
| 1698 DONT_TRACK_ALLOCATION_SITE, |
| 1699 NULL); |
1698 __ jmp(&fast_object); | 1700 __ jmp(&fast_object); |
1699 | 1701 |
1700 __ bind(&try_holey_map); | 1702 __ bind(&try_holey_map); |
1701 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, | 1703 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, |
1702 FAST_HOLEY_ELEMENTS, | 1704 FAST_HOLEY_ELEMENTS, |
1703 r3, | 1705 r3, |
1704 r7, | 1706 r7, |
1705 &call_builtin); | 1707 &call_builtin); |
1706 __ mov(r2, receiver); | 1708 __ mov(r2, receiver); |
1707 ElementsTransitionGenerator:: | 1709 ElementsTransitionGenerator:: |
1708 GenerateMapChangeElementsTransition(masm()); | 1710 GenerateMapChangeElementsTransition(masm(), |
| 1711 DONT_TRACK_ALLOCATION_SITE, |
| 1712 NULL); |
1709 __ bind(&fast_object); | 1713 __ bind(&fast_object); |
1710 } else { | 1714 } else { |
1711 __ CheckFastObjectElements(r3, r3, &call_builtin); | 1715 __ CheckFastObjectElements(r3, r3, &call_builtin); |
1712 } | 1716 } |
1713 | 1717 |
1714 // Save new length. | 1718 // Save new length. |
1715 __ str(r0, FieldMemOperand(receiver, JSArray::kLengthOffset)); | 1719 __ str(r0, FieldMemOperand(receiver, JSArray::kLengthOffset)); |
1716 | 1720 |
1717 // Store the value. | 1721 // Store the value. |
1718 // We may need a register containing the address end_elements below, | 1722 // We may need a register containing the address end_elements below, |
(...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4372 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4376 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4373 } | 4377 } |
4374 } | 4378 } |
4375 | 4379 |
4376 | 4380 |
4377 #undef __ | 4381 #undef __ |
4378 | 4382 |
4379 } } // namespace v8::internal | 4383 } } // namespace v8::internal |
4380 | 4384 |
4381 #endif // V8_TARGET_ARCH_ARM | 4385 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |