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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 | 701 |
702 __ pop(ebx); | 702 __ pop(ebx); |
703 __ push(receiver); | 703 __ push(receiver); |
704 __ push(name); | 704 __ push(name); |
705 __ push(ebx); | 705 __ push(ebx); |
706 | 706 |
707 // Do tail-call to runtime routine. | 707 // Do tail-call to runtime routine. |
708 __ TailCallRuntime(Runtime::kKeyedGetProperty); | 708 __ TailCallRuntime(Runtime::kKeyedGetProperty); |
709 } | 709 } |
710 | 710 |
711 | |
712 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { | |
713 // This shouldn't be called. | |
714 // TODO(mvstanton): remove this method. | |
715 __ int3(); | |
716 return; | |
717 } | |
718 | |
719 | |
720 static void StoreIC_PushArgs(MacroAssembler* masm) { | 711 static void StoreIC_PushArgs(MacroAssembler* masm) { |
721 Register receiver = StoreDescriptor::ReceiverRegister(); | 712 Register receiver = StoreDescriptor::ReceiverRegister(); |
722 Register name = StoreDescriptor::NameRegister(); | 713 Register name = StoreDescriptor::NameRegister(); |
723 Register value = StoreDescriptor::ValueRegister(); | 714 Register value = StoreDescriptor::ValueRegister(); |
724 Register slot = VectorStoreICDescriptor::SlotRegister(); | 715 Register slot = VectorStoreICDescriptor::SlotRegister(); |
725 Register vector = VectorStoreICDescriptor::VectorRegister(); | 716 Register vector = VectorStoreICDescriptor::VectorRegister(); |
726 | 717 |
727 __ xchg(receiver, Operand(esp, 0)); | 718 __ xchg(receiver, Operand(esp, 0)); |
728 __ push(name); | 719 __ push(name); |
729 __ push(value); | 720 __ push(value); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 Condition cc = | 844 Condition cc = |
854 (check == ENABLE_INLINED_SMI_CHECK) | 845 (check == ENABLE_INLINED_SMI_CHECK) |
855 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 846 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
856 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 847 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
857 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 848 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
858 } | 849 } |
859 } // namespace internal | 850 } // namespace internal |
860 } // namespace v8 | 851 } // namespace v8 |
861 | 852 |
862 #endif // V8_TARGET_ARCH_X87 | 853 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |