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 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 // edx: receiver | 1686 // edx: receiver |
1687 // a3: map | 1687 // a3: map |
1688 Label try_holey_map; | 1688 Label try_holey_map; |
1689 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, | 1689 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, |
1690 FAST_ELEMENTS, | 1690 FAST_ELEMENTS, |
1691 a3, | 1691 a3, |
1692 t3, | 1692 t3, |
1693 &try_holey_map); | 1693 &try_holey_map); |
1694 __ mov(a2, receiver); | 1694 __ mov(a2, receiver); |
1695 ElementsTransitionGenerator:: | 1695 ElementsTransitionGenerator:: |
1696 GenerateMapChangeElementsTransition(masm()); | 1696 GenerateMapChangeElementsTransition(masm(), |
| 1697 DONT_TRACK_ALLOCATION_SITE, |
| 1698 NULL); |
1697 __ jmp(&fast_object); | 1699 __ jmp(&fast_object); |
1698 | 1700 |
1699 __ bind(&try_holey_map); | 1701 __ bind(&try_holey_map); |
1700 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, | 1702 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, |
1701 FAST_HOLEY_ELEMENTS, | 1703 FAST_HOLEY_ELEMENTS, |
1702 a3, | 1704 a3, |
1703 t3, | 1705 t3, |
1704 &call_builtin); | 1706 &call_builtin); |
1705 __ mov(a2, receiver); | 1707 __ mov(a2, receiver); |
1706 ElementsTransitionGenerator:: | 1708 ElementsTransitionGenerator:: |
1707 GenerateMapChangeElementsTransition(masm()); | 1709 GenerateMapChangeElementsTransition(masm(), |
| 1710 DONT_TRACK_ALLOCATION_SITE, |
| 1711 NULL); |
1708 __ bind(&fast_object); | 1712 __ bind(&fast_object); |
1709 } else { | 1713 } else { |
1710 __ CheckFastObjectElements(a3, a3, &call_builtin); | 1714 __ CheckFastObjectElements(a3, a3, &call_builtin); |
1711 } | 1715 } |
1712 | 1716 |
1713 // Save new length. | 1717 // Save new length. |
1714 __ sw(v0, FieldMemOperand(receiver, JSArray::kLengthOffset)); | 1718 __ sw(v0, FieldMemOperand(receiver, JSArray::kLengthOffset)); |
1715 | 1719 |
1716 // Store the value. | 1720 // Store the value. |
1717 // We may need a register containing the address end_elements below, | 1721 // We may need a register containing the address end_elements below, |
(...skipping 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4424 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4428 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4425 } | 4429 } |
4426 } | 4430 } |
4427 | 4431 |
4428 | 4432 |
4429 #undef __ | 4433 #undef __ |
4430 | 4434 |
4431 } } // namespace v8::internal | 4435 } } // namespace v8::internal |
4432 | 4436 |
4433 #endif // V8_TARGET_ARCH_MIPS | 4437 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |