| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2849 | 2849 |
| 2850 template <class T> | 2850 template <class T> |
| 2851 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 2851 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
| 2852 DCHECK(FLAG_vector_ics); | 2852 DCHECK(FLAG_vector_ics); |
| 2853 Register vector = ToRegister(instr->temp_vector()); | 2853 Register vector = ToRegister(instr->temp_vector()); |
| 2854 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); | 2854 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); |
| 2855 __ Move(vector, instr->hydrogen()->feedback_vector()); | 2855 __ Move(vector, instr->hydrogen()->feedback_vector()); |
| 2856 // No need to allocate this register. | 2856 // No need to allocate this register. |
| 2857 DCHECK(VectorLoadICDescriptor::SlotRegister().is(rax)); | 2857 DCHECK(VectorLoadICDescriptor::SlotRegister().is(rax)); |
| 2858 __ Move(VectorLoadICDescriptor::SlotRegister(), | 2858 __ Move(VectorLoadICDescriptor::SlotRegister(), |
| 2859 Smi::FromInt(instr->hydrogen()->slot())); | 2859 Smi::FromInt(instr->hydrogen()->slot().ToInt())); |
| 2860 } | 2860 } |
| 2861 | 2861 |
| 2862 | 2862 |
| 2863 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2863 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
| 2864 DCHECK(ToRegister(instr->context()).is(rsi)); | 2864 DCHECK(ToRegister(instr->context()).is(rsi)); |
| 2865 DCHECK(ToRegister(instr->global_object()) | 2865 DCHECK(ToRegister(instr->global_object()) |
| 2866 .is(LoadDescriptor::ReceiverRegister())); | 2866 .is(LoadDescriptor::ReceiverRegister())); |
| 2867 DCHECK(ToRegister(instr->result()).is(rax)); | 2867 DCHECK(ToRegister(instr->result()).is(rax)); |
| 2868 | 2868 |
| 2869 __ Move(LoadDescriptor::NameRegister(), instr->name()); | 2869 __ Move(LoadDescriptor::NameRegister(), instr->name()); |
| (...skipping 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5881 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5881 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5882 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5882 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5883 } | 5883 } |
| 5884 | 5884 |
| 5885 | 5885 |
| 5886 #undef __ | 5886 #undef __ |
| 5887 | 5887 |
| 5888 } } // namespace v8::internal | 5888 } } // namespace v8::internal |
| 5889 | 5889 |
| 5890 #endif // V8_TARGET_ARCH_X64 | 5890 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |