| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
| 9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
| 10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 703 |
| 704 __ PopReturnAddressTo(rbx); | 704 __ PopReturnAddressTo(rbx); |
| 705 __ Push(receiver); | 705 __ Push(receiver); |
| 706 __ Push(name); | 706 __ Push(name); |
| 707 __ PushReturnAddressFrom(rbx); | 707 __ PushReturnAddressFrom(rbx); |
| 708 | 708 |
| 709 // Do tail-call to runtime routine. | 709 // Do tail-call to runtime routine. |
| 710 __ TailCallRuntime(Runtime::kKeyedGetProperty); | 710 __ TailCallRuntime(Runtime::kKeyedGetProperty); |
| 711 } | 711 } |
| 712 | 712 |
| 713 | |
| 714 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { | |
| 715 // This shouldn't be called. | |
| 716 __ int3(); | |
| 717 } | |
| 718 | |
| 719 | |
| 720 static void StoreIC_PushArgs(MacroAssembler* masm) { | 713 static void StoreIC_PushArgs(MacroAssembler* masm) { |
| 721 Register receiver = StoreDescriptor::ReceiverRegister(); | 714 Register receiver = StoreDescriptor::ReceiverRegister(); |
| 722 Register name = StoreDescriptor::NameRegister(); | 715 Register name = StoreDescriptor::NameRegister(); |
| 723 Register value = StoreDescriptor::ValueRegister(); | 716 Register value = StoreDescriptor::ValueRegister(); |
| 724 Register temp = r11; | 717 Register temp = r11; |
| 725 DCHECK(!temp.is(receiver) && !temp.is(name) && !temp.is(value)); | 718 DCHECK(!temp.is(receiver) && !temp.is(name) && !temp.is(value)); |
| 726 | 719 |
| 727 __ PopReturnAddressTo(temp); | 720 __ PopReturnAddressTo(temp); |
| 728 __ Push(receiver); | 721 __ Push(receiver); |
| 729 __ Push(name); | 722 __ Push(name); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 Condition cc = | 839 Condition cc = |
| 847 (check == ENABLE_INLINED_SMI_CHECK) | 840 (check == ENABLE_INLINED_SMI_CHECK) |
| 848 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 841 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 849 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 842 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 850 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 843 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 851 } | 844 } |
| 852 } // namespace internal | 845 } // namespace internal |
| 853 } // namespace v8 | 846 } // namespace v8 |
| 854 | 847 |
| 855 #endif // V8_TARGET_ARCH_X64 | 848 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |