| 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 #include "src/arm/lithium-codegen-arm.h" | 5 #include "src/arm/lithium-codegen-arm.h" |
| 6 #include "src/arm/lithium-gap-resolver-arm.h" | 6 #include "src/arm/lithium-gap-resolver-arm.h" |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 2780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2791 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 2791 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
| 2792 Register vector_register = ToRegister(instr->temp_vector()); | 2792 Register vector_register = ToRegister(instr->temp_vector()); |
| 2793 Register slot_register = LoadDescriptor::SlotRegister(); | 2793 Register slot_register = LoadDescriptor::SlotRegister(); |
| 2794 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); | 2794 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); |
| 2795 DCHECK(slot_register.is(r0)); | 2795 DCHECK(slot_register.is(r0)); |
| 2796 | 2796 |
| 2797 AllowDeferredHandleDereference vector_structure_check; | 2797 AllowDeferredHandleDereference vector_structure_check; |
| 2798 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2798 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
| 2799 __ Move(vector_register, vector); | 2799 __ Move(vector_register, vector); |
| 2800 // No need to allocate this register. | 2800 // No need to allocate this register. |
| 2801 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); | 2801 FeedbackVectorSlot slot = instr->hydrogen()->slot(); |
| 2802 int index = vector->GetIndex(slot); | 2802 int index = vector->GetIndex(slot); |
| 2803 __ mov(slot_register, Operand(Smi::FromInt(index))); | 2803 __ mov(slot_register, Operand(Smi::FromInt(index))); |
| 2804 } | 2804 } |
| 2805 | 2805 |
| 2806 | 2806 |
| 2807 template <class T> | 2807 template <class T> |
| 2808 void LCodeGen::EmitVectorStoreICRegisters(T* instr) { | 2808 void LCodeGen::EmitVectorStoreICRegisters(T* instr) { |
| 2809 Register vector_register = ToRegister(instr->temp_vector()); | 2809 Register vector_register = ToRegister(instr->temp_vector()); |
| 2810 Register slot_register = ToRegister(instr->temp_slot()); | 2810 Register slot_register = ToRegister(instr->temp_slot()); |
| 2811 | 2811 |
| 2812 AllowDeferredHandleDereference vector_structure_check; | 2812 AllowDeferredHandleDereference vector_structure_check; |
| 2813 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2813 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
| 2814 __ Move(vector_register, vector); | 2814 __ Move(vector_register, vector); |
| 2815 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); | 2815 FeedbackVectorSlot slot = instr->hydrogen()->slot(); |
| 2816 int index = vector->GetIndex(slot); | 2816 int index = vector->GetIndex(slot); |
| 2817 __ mov(slot_register, Operand(Smi::FromInt(index))); | 2817 __ mov(slot_register, Operand(Smi::FromInt(index))); |
| 2818 } | 2818 } |
| 2819 | 2819 |
| 2820 | 2820 |
| 2821 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2821 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
| 2822 DCHECK(ToRegister(instr->context()).is(cp)); | 2822 DCHECK(ToRegister(instr->context()).is(cp)); |
| 2823 DCHECK(ToRegister(instr->global_object()) | 2823 DCHECK(ToRegister(instr->global_object()) |
| 2824 .is(LoadDescriptor::ReceiverRegister())); | 2824 .is(LoadDescriptor::ReceiverRegister())); |
| 2825 DCHECK(ToRegister(instr->result()).is(r0)); | 2825 DCHECK(ToRegister(instr->result()).is(r0)); |
| (...skipping 3016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5842 __ push(ToRegister(instr->function())); | 5842 __ push(ToRegister(instr->function())); |
| 5843 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5843 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5844 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5844 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5845 } | 5845 } |
| 5846 | 5846 |
| 5847 | 5847 |
| 5848 #undef __ | 5848 #undef __ |
| 5849 | 5849 |
| 5850 } // namespace internal | 5850 } // namespace internal |
| 5851 } // namespace v8 | 5851 } // namespace v8 |
| OLD | NEW |