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 2971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2982 if (no_frame_start != -1) { | 2982 if (no_frame_start != -1) { |
2983 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); | 2983 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); |
2984 } | 2984 } |
2985 } | 2985 } |
2986 } | 2986 } |
2987 | 2987 |
2988 | 2988 |
2989 template <class T> | 2989 template <class T> |
2990 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 2990 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
2991 Register vector_register = ToRegister(instr->temp_vector()); | 2991 Register vector_register = ToRegister(instr->temp_vector()); |
2992 Register slot_register = VectorLoadICDescriptor::SlotRegister(); | 2992 Register slot_register = LoadDescriptor::SlotRegister(); |
2993 DCHECK(vector_register.is(VectorLoadICDescriptor::VectorRegister())); | 2993 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); |
2994 DCHECK(slot_register.is(r0)); | 2994 DCHECK(slot_register.is(r0)); |
2995 | 2995 |
2996 AllowDeferredHandleDereference vector_structure_check; | 2996 AllowDeferredHandleDereference vector_structure_check; |
2997 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2997 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
2998 __ Move(vector_register, vector); | 2998 __ Move(vector_register, vector); |
2999 // No need to allocate this register. | 2999 // No need to allocate this register. |
3000 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); | 3000 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); |
3001 int index = vector->GetIndex(slot); | 3001 int index = vector->GetIndex(slot); |
3002 __ mov(slot_register, Operand(Smi::FromInt(index))); | 3002 __ mov(slot_register, Operand(Smi::FromInt(index))); |
3003 } | 3003 } |
(...skipping 3015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6019 __ Push(scope_info); | 6019 __ Push(scope_info); |
6020 __ push(ToRegister(instr->function())); | 6020 __ push(ToRegister(instr->function())); |
6021 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6021 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6022 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6022 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6023 } | 6023 } |
6024 | 6024 |
6025 | 6025 |
6026 #undef __ | 6026 #undef __ |
6027 | 6027 |
6028 } } // namespace v8::internal | 6028 } } // namespace v8::internal |
OLD | NEW |