OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 __ Bind(&do_call); | 664 __ Bind(&do_call); |
665 // Live values: | 665 // Live values: |
666 // x1: function | 666 // x1: function |
667 // x2: key | 667 // x2: key |
668 // GenerateFunctionTailCall requires that function is x1. This is enforced by | 668 // GenerateFunctionTailCall requires that function is x1. This is enforced by |
669 // MacroAssembler::InvokeFunction. | 669 // MacroAssembler::InvokeFunction. |
670 GenerateFunctionTailCall(masm, argc, &slow_call, function, x10); | 670 GenerateFunctionTailCall(masm, argc, &slow_call, function, x10); |
671 | 671 |
672 // It should not be possible for execution to fall through a tail call. | 672 // It should not be possible for execution to fall through a tail call. |
673 if (__ emit_debug_code()) { | 673 if (__ emit_debug_code()) { |
674 __ Abort("Unreachable code."); | 674 __ Unreachable(); |
675 } | 675 } |
676 | 676 |
677 __ Bind(¬_fast_array); | 677 __ Bind(¬_fast_array); |
678 // Check whether the elements is a number dictionary. | 678 // Check whether the elements is a number dictionary. |
679 // Live values: | 679 // Live values: |
680 // x1: receiver | 680 // x1: receiver |
681 // x2: key | 681 // x2: key |
682 // x3: elements map | 682 // x3: elements map |
683 // x4: elements | 683 // x4: elements |
684 __ JumpIfNotRoot(elements_map, Heap::kHashTableMapRootIndex, &slow_load); | 684 __ JumpIfNotRoot(elements_map, Heap::kHashTableMapRootIndex, &slow_load); |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1796 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); | 1796 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); |
1797 // This is JumpIfSmi(smi_reg, branch_imm). | 1797 // This is JumpIfSmi(smi_reg, branch_imm). |
1798 patcher.tbz(smi_reg, 0, branch_imm); | 1798 patcher.tbz(smi_reg, 0, branch_imm); |
1799 } | 1799 } |
1800 } | 1800 } |
1801 | 1801 |
1802 | 1802 |
1803 } } // namespace v8::internal | 1803 } } // namespace v8::internal |
1804 | 1804 |
1805 #endif // V8_TARGET_ARCH_A64 | 1805 #endif // V8_TARGET_ARCH_A64 |
OLD | NEW |