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 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1572 // rbx: map | 1572 // rbx: map |
1573 | 1573 |
1574 Label try_holey_map; | 1574 Label try_holey_map; |
1575 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, | 1575 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, |
1576 FAST_ELEMENTS, | 1576 FAST_ELEMENTS, |
1577 rbx, | 1577 rbx, |
1578 rdi, | 1578 rdi, |
1579 &try_holey_map); | 1579 &try_holey_map); |
1580 | 1580 |
1581 ElementsTransitionGenerator:: | 1581 ElementsTransitionGenerator:: |
1582 GenerateMapChangeElementsTransition(masm()); | 1582 GenerateMapChangeElementsTransition(masm(), |
| 1583 DONT_TRACK_ALLOCATION_SITE, |
| 1584 NULL); |
1583 // Restore edi. | 1585 // Restore edi. |
1584 __ movq(rdi, FieldOperand(rdx, JSArray::kElementsOffset)); | 1586 __ movq(rdi, FieldOperand(rdx, JSArray::kElementsOffset)); |
1585 __ jmp(&fast_object); | 1587 __ jmp(&fast_object); |
1586 | 1588 |
1587 __ bind(&try_holey_map); | 1589 __ bind(&try_holey_map); |
1588 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, | 1590 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, |
1589 FAST_HOLEY_ELEMENTS, | 1591 FAST_HOLEY_ELEMENTS, |
1590 rbx, | 1592 rbx, |
1591 rdi, | 1593 rdi, |
1592 &call_builtin); | 1594 &call_builtin); |
1593 ElementsTransitionGenerator:: | 1595 ElementsTransitionGenerator:: |
1594 GenerateMapChangeElementsTransition(masm()); | 1596 GenerateMapChangeElementsTransition(masm(), |
| 1597 DONT_TRACK_ALLOCATION_SITE, |
| 1598 NULL); |
1595 __ movq(rdi, FieldOperand(rdx, JSArray::kElementsOffset)); | 1599 __ movq(rdi, FieldOperand(rdx, JSArray::kElementsOffset)); |
1596 __ bind(&fast_object); | 1600 __ bind(&fast_object); |
1597 } else { | 1601 } else { |
1598 __ CheckFastObjectElements(rbx, &call_builtin); | 1602 __ CheckFastObjectElements(rbx, &call_builtin); |
1599 } | 1603 } |
1600 | 1604 |
1601 // Save new length. | 1605 // Save new length. |
1602 __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax); | 1606 __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax); |
1603 | 1607 |
1604 // Store the value. | 1608 // Store the value. |
(...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3928 __ jmp(ic_slow, RelocInfo::CODE_TARGET); | 3932 __ jmp(ic_slow, RelocInfo::CODE_TARGET); |
3929 } | 3933 } |
3930 } | 3934 } |
3931 | 3935 |
3932 | 3936 |
3933 #undef __ | 3937 #undef __ |
3934 | 3938 |
3935 } } // namespace v8::internal | 3939 } } // namespace v8::internal |
3936 | 3940 |
3937 #endif // V8_TARGET_ARCH_X64 | 3941 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |