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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3139 EmitReturn(instr, false); | 3139 EmitReturn(instr, false); |
3140 if (no_frame_start != -1) { | 3140 if (no_frame_start != -1) { |
3141 info()->AddNoFrameRange(no_frame_start, masm_->pc_offset()); | 3141 info()->AddNoFrameRange(no_frame_start, masm_->pc_offset()); |
3142 } | 3142 } |
3143 } | 3143 } |
3144 | 3144 |
3145 | 3145 |
3146 template <class T> | 3146 template <class T> |
3147 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 3147 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
3148 Register vector_register = ToRegister(instr->temp_vector()); | 3148 Register vector_register = ToRegister(instr->temp_vector()); |
3149 Register slot_register = VectorLoadICDescriptor::SlotRegister(); | 3149 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); |
3150 DCHECK(vector_register.is(VectorLoadICDescriptor::VectorRegister())); | 3150 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); |
3151 DCHECK(slot_register.is(eax)); | 3151 DCHECK(slot_register.is(eax)); |
3152 | 3152 |
3153 AllowDeferredHandleDereference vector_structure_check; | 3153 AllowDeferredHandleDereference vector_structure_check; |
3154 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 3154 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
3155 __ mov(vector_register, vector); | 3155 __ mov(vector_register, vector); |
3156 // No need to allocate this register. | 3156 // No need to allocate this register. |
3157 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); | 3157 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); |
3158 int index = vector->GetIndex(slot); | 3158 int index = vector->GetIndex(slot); |
3159 __ mov(slot_register, Immediate(Smi::FromInt(index))); | 3159 __ mov(slot_register, Immediate(Smi::FromInt(index))); |
3160 } | 3160 } |
(...skipping 3288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6449 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6449 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6450 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6450 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6451 } | 6451 } |
6452 | 6452 |
6453 | 6453 |
6454 #undef __ | 6454 #undef __ |
6455 | 6455 |
6456 } } // namespace v8::internal | 6456 } } // namespace v8::internal |
6457 | 6457 |
6458 #endif // V8_TARGET_ARCH_X87 | 6458 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |