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 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 __ bind(¬_fast_object); | 1436 __ bind(¬_fast_object); |
1437 __ CheckFastSmiOnlyElements(rbx, &call_builtin); | 1437 __ CheckFastSmiOnlyElements(rbx, &call_builtin); |
1438 // rdx: receiver | 1438 // rdx: receiver |
1439 // rbx: map | 1439 // rbx: map |
1440 __ movq(r9, rdi); // Backup rdi as it is going to be trashed. | 1440 __ movq(r9, rdi); // Backup rdi as it is going to be trashed. |
1441 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS, | 1441 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS, |
1442 FAST_ELEMENTS, | 1442 FAST_ELEMENTS, |
1443 rbx, | 1443 rbx, |
1444 rdi, | 1444 rdi, |
1445 &call_builtin); | 1445 &call_builtin); |
1446 ElementsTransitionGenerator::GenerateSmiOnlyToObject(masm()); | 1446 ElementsTransitionGenerator::GenerateMapChangeElementTransition(masm()); |
1447 __ movq(rdi, r9); | 1447 __ movq(rdi, r9); |
1448 __ bind(&fast_object); | 1448 __ bind(&fast_object); |
1449 } else { | 1449 } else { |
1450 __ CheckFastObjectElements(rbx, &call_builtin); | 1450 __ CheckFastObjectElements(rbx, &call_builtin); |
1451 } | 1451 } |
1452 | 1452 |
1453 // Save new length. | 1453 // Save new length. |
1454 __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax); | 1454 __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax); |
1455 | 1455 |
1456 // Store the value. | 1456 // Store the value. |
(...skipping 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3831 __ jmp(ic_slow, RelocInfo::CODE_TARGET); | 3831 __ jmp(ic_slow, RelocInfo::CODE_TARGET); |
3832 } | 3832 } |
3833 } | 3833 } |
3834 | 3834 |
3835 | 3835 |
3836 #undef __ | 3836 #undef __ |
3837 | 3837 |
3838 } } // namespace v8::internal | 3838 } } // namespace v8::internal |
3839 | 3839 |
3840 #endif // V8_TARGET_ARCH_X64 | 3840 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |