OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 3031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3042 | 3042 |
3043 if (no_frame_start != -1) { | 3043 if (no_frame_start != -1) { |
3044 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); | 3044 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); |
3045 } | 3045 } |
3046 } | 3046 } |
3047 | 3047 |
3048 | 3048 |
3049 template <class T> | 3049 template <class T> |
3050 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 3050 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
3051 Register vector_register = ToRegister(instr->temp_vector()); | 3051 Register vector_register = ToRegister(instr->temp_vector()); |
3052 Register slot_register = VectorLoadICDescriptor::SlotRegister(); | 3052 Register slot_register = LoadDescriptor::SlotRegister(); |
3053 DCHECK(vector_register.is(VectorLoadICDescriptor::VectorRegister())); | 3053 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); |
3054 DCHECK(slot_register.is(r3)); | 3054 DCHECK(slot_register.is(r3)); |
3055 | 3055 |
3056 AllowDeferredHandleDereference vector_structure_check; | 3056 AllowDeferredHandleDereference vector_structure_check; |
3057 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 3057 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
3058 __ Move(vector_register, vector); | 3058 __ Move(vector_register, vector); |
3059 // No need to allocate this register. | 3059 // No need to allocate this register. |
3060 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); | 3060 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); |
3061 int index = vector->GetIndex(slot); | 3061 int index = vector->GetIndex(slot); |
3062 __ mov(slot_register, Operand(Smi::FromInt(index))); | 3062 __ mov(slot_register, Operand(Smi::FromInt(index))); |
3063 } | 3063 } |
(...skipping 3216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6280 __ Push(scope_info); | 6280 __ Push(scope_info); |
6281 __ push(ToRegister(instr->function())); | 6281 __ push(ToRegister(instr->function())); |
6282 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6282 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6283 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6283 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6284 } | 6284 } |
6285 | 6285 |
6286 | 6286 |
6287 #undef __ | 6287 #undef __ |
6288 } | 6288 } |
6289 } // namespace v8::internal | 6289 } // namespace v8::internal |
OLD | NEW |