| 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(), NULL); |
| 1698 __ jmp(&fast_object); | 1698 __ jmp(&fast_object); |
| 1699 | 1699 |
| 1700 __ bind(&try_holey_map); | 1700 __ bind(&try_holey_map); |
| 1701 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, | 1701 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, |
| 1702 FAST_HOLEY_ELEMENTS, | 1702 FAST_HOLEY_ELEMENTS, |
| 1703 r3, | 1703 r3, |
| 1704 r7, | 1704 r7, |
| 1705 &call_builtin); | 1705 &call_builtin); |
| 1706 __ mov(r2, receiver); | 1706 __ mov(r2, receiver); |
| 1707 ElementsTransitionGenerator:: | 1707 ElementsTransitionGenerator:: |
| 1708 GenerateMapChangeElementsTransition(masm()); | 1708 GenerateMapChangeElementsTransition(masm(), NULL); |
| 1709 __ bind(&fast_object); | 1709 __ bind(&fast_object); |
| 1710 } else { | 1710 } else { |
| 1711 __ CheckFastObjectElements(r3, r3, &call_builtin); | 1711 __ CheckFastObjectElements(r3, r3, &call_builtin); |
| 1712 } | 1712 } |
| 1713 | 1713 |
| 1714 // Save new length. | 1714 // Save new length. |
| 1715 __ str(r0, FieldMemOperand(receiver, JSArray::kLengthOffset)); | 1715 __ str(r0, FieldMemOperand(receiver, JSArray::kLengthOffset)); |
| 1716 | 1716 |
| 1717 // Store the value. | 1717 // Store the value. |
| 1718 // We may need a register containing the address end_elements below, | 1718 // 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); | 4372 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
| 4373 } | 4373 } |
| 4374 } | 4374 } |
| 4375 | 4375 |
| 4376 | 4376 |
| 4377 #undef __ | 4377 #undef __ |
| 4378 | 4378 |
| 4379 } } // namespace v8::internal | 4379 } } // namespace v8::internal |
| 4380 | 4380 |
| 4381 #endif // V8_TARGET_ARCH_ARM | 4381 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |