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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 2816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2827 | 2827 |
2828 template <class T> | 2828 template <class T> |
2829 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 2829 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
2830 DCHECK(FLAG_vector_ics); | 2830 DCHECK(FLAG_vector_ics); |
2831 Register vector = ToRegister(instr->temp_vector()); | 2831 Register vector = ToRegister(instr->temp_vector()); |
2832 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); | 2832 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); |
2833 __ mov(vector, instr->hydrogen()->feedback_vector()); | 2833 __ mov(vector, instr->hydrogen()->feedback_vector()); |
2834 // No need to allocate this register. | 2834 // No need to allocate this register. |
2835 DCHECK(VectorLoadICDescriptor::SlotRegister().is(eax)); | 2835 DCHECK(VectorLoadICDescriptor::SlotRegister().is(eax)); |
2836 __ mov(VectorLoadICDescriptor::SlotRegister(), | 2836 __ mov(VectorLoadICDescriptor::SlotRegister(), |
2837 Immediate(Smi::FromInt(instr->hydrogen()->slot()))); | 2837 Immediate(Smi::FromInt(instr->hydrogen()->slot().ToInt()))); |
2838 } | 2838 } |
2839 | 2839 |
2840 | 2840 |
2841 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2841 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
2842 DCHECK(ToRegister(instr->context()).is(esi)); | 2842 DCHECK(ToRegister(instr->context()).is(esi)); |
2843 DCHECK(ToRegister(instr->global_object()) | 2843 DCHECK(ToRegister(instr->global_object()) |
2844 .is(LoadDescriptor::ReceiverRegister())); | 2844 .is(LoadDescriptor::ReceiverRegister())); |
2845 DCHECK(ToRegister(instr->result()).is(eax)); | 2845 DCHECK(ToRegister(instr->result()).is(eax)); |
2846 | 2846 |
2847 __ mov(LoadDescriptor::NameRegister(), instr->name()); | 2847 __ mov(LoadDescriptor::NameRegister(), instr->name()); |
(...skipping 2850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5698 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5698 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5699 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5699 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5700 } | 5700 } |
5701 | 5701 |
5702 | 5702 |
5703 #undef __ | 5703 #undef __ |
5704 | 5704 |
5705 } } // namespace v8::internal | 5705 } } // namespace v8::internal |
5706 | 5706 |
5707 #endif // V8_TARGET_ARCH_IA32 | 5707 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |