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 #include "src/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" |
8 #include "src/arm/lithium-gap-resolver-arm.h" | 8 #include "src/arm/lithium-gap-resolver-arm.h" |
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 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2993 | 2993 |
2994 template <class T> | 2994 template <class T> |
2995 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 2995 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
2996 DCHECK(FLAG_vector_ics); | 2996 DCHECK(FLAG_vector_ics); |
2997 Register vector = ToRegister(instr->temp_vector()); | 2997 Register vector = ToRegister(instr->temp_vector()); |
2998 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); | 2998 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); |
2999 __ Move(vector, instr->hydrogen()->feedback_vector()); | 2999 __ Move(vector, instr->hydrogen()->feedback_vector()); |
3000 // No need to allocate this register. | 3000 // No need to allocate this register. |
3001 DCHECK(VectorLoadICDescriptor::SlotRegister().is(r0)); | 3001 DCHECK(VectorLoadICDescriptor::SlotRegister().is(r0)); |
3002 __ mov(VectorLoadICDescriptor::SlotRegister(), | 3002 __ mov(VectorLoadICDescriptor::SlotRegister(), |
3003 Operand(Smi::FromInt(instr->hydrogen()->slot()))); | 3003 Operand(Smi::FromInt(instr->hydrogen()->slot().ToInt()))); |
3004 } | 3004 } |
3005 | 3005 |
3006 | 3006 |
3007 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 3007 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
3008 DCHECK(ToRegister(instr->context()).is(cp)); | 3008 DCHECK(ToRegister(instr->context()).is(cp)); |
3009 DCHECK(ToRegister(instr->global_object()) | 3009 DCHECK(ToRegister(instr->global_object()) |
3010 .is(LoadDescriptor::ReceiverRegister())); | 3010 .is(LoadDescriptor::ReceiverRegister())); |
3011 DCHECK(ToRegister(instr->result()).is(r0)); | 3011 DCHECK(ToRegister(instr->result()).is(r0)); |
3012 | 3012 |
3013 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name())); | 3013 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name())); |
(...skipping 2890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5904 __ Push(scope_info); | 5904 __ Push(scope_info); |
5905 __ push(ToRegister(instr->function())); | 5905 __ push(ToRegister(instr->function())); |
5906 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5906 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5907 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5907 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5908 } | 5908 } |
5909 | 5909 |
5910 | 5910 |
5911 #undef __ | 5911 #undef __ |
5912 | 5912 |
5913 } } // namespace v8::internal | 5913 } } // namespace v8::internal |
OLD | NEW |