| 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset)); | 713 __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset)); |
| 714 __ jmp(&fast_double_without_map_check); | 714 __ jmp(&fast_double_without_map_check); |
| 715 | 715 |
| 716 __ bind(&non_double_value); | 716 __ bind(&non_double_value); |
| 717 // Value is not a double, FAST_SMI_ELEMENTS -> FAST_ELEMENTS | 717 // Value is not a double, FAST_SMI_ELEMENTS -> FAST_ELEMENTS |
| 718 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, | 718 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, |
| 719 FAST_ELEMENTS, | 719 FAST_ELEMENTS, |
| 720 rbx, | 720 rbx, |
| 721 rdi, | 721 rdi, |
| 722 slow); | 722 slow); |
| 723 ElementsTransitionGenerator::GenerateMapChangeElementsTransition(masm); | 723 ElementsTransitionGenerator::GenerateMapChangeElementsTransition(masm, slow); |
| 724 __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset)); | 724 __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset)); |
| 725 __ jmp(&finish_object_store); | 725 __ jmp(&finish_object_store); |
| 726 | 726 |
| 727 __ bind(&transition_double_elements); | 727 __ bind(&transition_double_elements); |
| 728 // Elements are FAST_DOUBLE_ELEMENTS, but value is an Object that's not a | 728 // Elements are FAST_DOUBLE_ELEMENTS, but value is an Object that's not a |
| 729 // HeapNumber. Make sure that the receiver is a Array with FAST_ELEMENTS and | 729 // HeapNumber. Make sure that the receiver is a Array with FAST_ELEMENTS and |
| 730 // transition array from FAST_DOUBLE_ELEMENTS to FAST_ELEMENTS | 730 // transition array from FAST_DOUBLE_ELEMENTS to FAST_ELEMENTS |
| 731 __ movq(rbx, FieldOperand(rdx, HeapObject::kMapOffset)); | 731 __ movq(rbx, FieldOperand(rdx, HeapObject::kMapOffset)); |
| 732 __ LoadTransitionedArrayMapConditional(FAST_DOUBLE_ELEMENTS, | 732 __ LoadTransitionedArrayMapConditional(FAST_DOUBLE_ELEMENTS, |
| 733 FAST_ELEMENTS, | 733 FAST_ELEMENTS, |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1773 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1773 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
| 1774 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1774 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 1775 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1775 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 1776 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1776 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1777 } | 1777 } |
| 1778 | 1778 |
| 1779 | 1779 |
| 1780 } } // namespace v8::internal | 1780 } } // namespace v8::internal |
| 1781 | 1781 |
| 1782 #endif // V8_TARGET_ARCH_X64 | 1782 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |