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/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 2890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2901 | 2901 |
2902 if (no_frame_start != -1) { | 2902 if (no_frame_start != -1) { |
2903 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); | 2903 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); |
2904 } | 2904 } |
2905 } | 2905 } |
2906 | 2906 |
2907 | 2907 |
2908 template <class T> | 2908 template <class T> |
2909 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 2909 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
2910 Register vector_register = ToRegister(instr->temp_vector()); | 2910 Register vector_register = ToRegister(instr->temp_vector()); |
2911 Register slot_register = VectorLoadICDescriptor::SlotRegister(); | 2911 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); |
2912 DCHECK(vector_register.is(VectorLoadICDescriptor::VectorRegister())); | 2912 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); |
2913 DCHECK(slot_register.is(a0)); | 2913 DCHECK(slot_register.is(a0)); |
2914 | 2914 |
2915 AllowDeferredHandleDereference vector_structure_check; | 2915 AllowDeferredHandleDereference vector_structure_check; |
2916 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2916 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
2917 __ li(vector_register, vector); | 2917 __ li(vector_register, vector); |
2918 // No need to allocate this register. | 2918 // No need to allocate this register. |
2919 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); | 2919 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); |
2920 int index = vector->GetIndex(slot); | 2920 int index = vector->GetIndex(slot); |
2921 __ li(slot_register, Operand(Smi::FromInt(index))); | 2921 __ li(slot_register, Operand(Smi::FromInt(index))); |
2922 } | 2922 } |
(...skipping 3206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6129 __ li(at, scope_info); | 6129 __ li(at, scope_info); |
6130 __ Push(at, ToRegister(instr->function())); | 6130 __ Push(at, ToRegister(instr->function())); |
6131 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6131 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6132 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6132 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6133 } | 6133 } |
6134 | 6134 |
6135 | 6135 |
6136 #undef __ | 6136 #undef __ |
6137 | 6137 |
6138 } } // namespace v8::internal | 6138 } } // namespace v8::internal |
OLD | NEW |