| 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 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1614 | 1614 |
| 1615 // Get the elements' length. | 1615 // Get the elements' length. |
| 1616 __ ldr(r4, FieldMemOperand(elements, FixedArray::kLengthOffset)); | 1616 __ ldr(r4, FieldMemOperand(elements, FixedArray::kLengthOffset)); |
| 1617 | 1617 |
| 1618 // Check if we could survive without allocation. | 1618 // Check if we could survive without allocation. |
| 1619 __ cmp(r0, r4); | 1619 __ cmp(r0, r4); |
| 1620 __ b(gt, &call_builtin); | 1620 __ b(gt, &call_builtin); |
| 1621 | 1621 |
| 1622 __ ldr(r4, MemOperand(sp, (argc - 1) * kPointerSize)); | 1622 __ ldr(r4, MemOperand(sp, (argc - 1) * kPointerSize)); |
| 1623 __ StoreNumberToDoubleElements( | 1623 __ StoreNumberToDoubleElements( |
| 1624 r4, r0, elements, r3, r5, r2, r9, | 1624 r4, r0, elements, r5, r2, r3, r9, |
| 1625 &call_builtin, argc * kDoubleSize); | 1625 &call_builtin, argc * kDoubleSize); |
| 1626 | 1626 |
| 1627 // Save new length. | 1627 // Save new length. |
| 1628 __ str(r0, FieldMemOperand(receiver, JSArray::kLengthOffset)); | 1628 __ str(r0, FieldMemOperand(receiver, JSArray::kLengthOffset)); |
| 1629 | 1629 |
| 1630 // Check for a smi. | 1630 // Check for a smi. |
| 1631 __ Drop(argc + 1); | 1631 __ Drop(argc + 1); |
| 1632 __ Ret(); | 1632 __ Ret(); |
| 1633 | 1633 |
| 1634 __ bind(&with_write_barrier); | 1634 __ bind(&with_write_barrier); |
| (...skipping 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3579 } else { | 3579 } else { |
| 3580 __ b(hs, &miss_force_generic); | 3580 __ b(hs, &miss_force_generic); |
| 3581 } | 3581 } |
| 3582 | 3582 |
| 3583 __ bind(&finish_store); | 3583 __ bind(&finish_store); |
| 3584 __ StoreNumberToDoubleElements(value_reg, | 3584 __ StoreNumberToDoubleElements(value_reg, |
| 3585 key_reg, | 3585 key_reg, |
| 3586 // All registers after this are overwritten. | 3586 // All registers after this are overwritten. |
| 3587 elements_reg, | 3587 elements_reg, |
| 3588 scratch1, | 3588 scratch1, |
| 3589 scratch2, | |
| 3590 scratch3, | 3589 scratch3, |
| 3591 scratch4, | 3590 scratch4, |
| 3591 scratch2, |
| 3592 &transition_elements_kind); | 3592 &transition_elements_kind); |
| 3593 __ Ret(); | 3593 __ Ret(); |
| 3594 | 3594 |
| 3595 // Handle store cache miss, replacing the ic with the generic stub. | 3595 // Handle store cache miss, replacing the ic with the generic stub. |
| 3596 __ bind(&miss_force_generic); | 3596 __ bind(&miss_force_generic); |
| 3597 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_MissForceGeneric); | 3597 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_MissForceGeneric); |
| 3598 | 3598 |
| 3599 __ bind(&transition_elements_kind); | 3599 __ bind(&transition_elements_kind); |
| 3600 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Miss); | 3600 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Miss); |
| 3601 | 3601 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3684 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3684 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
| 3685 } | 3685 } |
| 3686 } | 3686 } |
| 3687 | 3687 |
| 3688 | 3688 |
| 3689 #undef __ | 3689 #undef __ |
| 3690 | 3690 |
| 3691 } } // namespace v8::internal | 3691 } } // namespace v8::internal |
| 3692 | 3692 |
| 3693 #endif // V8_TARGET_ARCH_ARM | 3693 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |