| 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 times_8, | 459 times_8, |
| 460 FixedDoubleArray::kHeaderSize)); | 460 FixedDoubleArray::kHeaderSize)); |
| 461 // r9 : current element's index | 461 // r9 : current element's index |
| 462 // r14: current element | 462 // r14: current element |
| 463 __ cmpq(r14, rsi); | 463 __ cmpq(r14, rsi); |
| 464 __ j(equal, &convert_hole); | 464 __ j(equal, &convert_hole); |
| 465 | 465 |
| 466 // Non-hole double, copy value into a heap number. | 466 // Non-hole double, copy value into a heap number. |
| 467 __ AllocateHeapNumber(rax, r15, &gc_required); | 467 __ AllocateHeapNumber(rax, r15, &gc_required); |
| 468 // rax: new heap number | 468 // rax: new heap number |
| 469 __ movq(FieldOperand(rax, HeapNumber::kValueOffset), r14); | 469 __ MoveDouble(FieldOperand(rax, HeapNumber::kValueOffset), r14); |
| 470 __ movq(FieldOperand(r11, | 470 __ movq(FieldOperand(r11, |
| 471 r9, | 471 r9, |
| 472 times_pointer_size, | 472 times_pointer_size, |
| 473 FixedArray::kHeaderSize), | 473 FixedArray::kHeaderSize), |
| 474 rax); | 474 rax); |
| 475 __ movq(r15, r9); | 475 __ movq(r15, r9); |
| 476 __ RecordWriteArray(r11, | 476 __ RecordWriteArray(r11, |
| 477 rax, | 477 rax, |
| 478 r15, | 478 r15, |
| 479 kDontSaveFPRegs, | 479 kDontSaveFPRegs, |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize. | 759 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize. |
| 760 return Operand(base_reg_, argument_count_reg_, times_pointer_size, | 760 return Operand(base_reg_, argument_count_reg_, times_pointer_size, |
| 761 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize); | 761 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize); |
| 762 } | 762 } |
| 763 } | 763 } |
| 764 | 764 |
| 765 | 765 |
| 766 } } // namespace v8::internal | 766 } } // namespace v8::internal |
| 767 | 767 |
| 768 #endif // V8_TARGET_ARCH_X64 | 768 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |