Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: src/mips64/lithium-codegen-mips64.cc

Issue 1370303004: Distinction between FeedbackVectorICSlot and FeedbackVectorSlot eliminated. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed release builds Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/hydrogen-osr.h" 7 #include "src/hydrogen-osr.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 #include "src/ic/stub-cache.h" 9 #include "src/ic/stub-cache.h"
10 #include "src/mips64/lithium-codegen-mips64.h" 10 #include "src/mips64/lithium-codegen-mips64.h"
(...skipping 2816 matching lines...) Expand 10 before | Expand all | Expand 10 after
2827 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 2827 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
2828 Register vector_register = ToRegister(instr->temp_vector()); 2828 Register vector_register = ToRegister(instr->temp_vector());
2829 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); 2829 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
2830 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); 2830 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
2831 DCHECK(slot_register.is(a0)); 2831 DCHECK(slot_register.is(a0));
2832 2832
2833 AllowDeferredHandleDereference vector_structure_check; 2833 AllowDeferredHandleDereference vector_structure_check;
2834 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2834 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2835 __ li(vector_register, vector); 2835 __ li(vector_register, vector);
2836 // No need to allocate this register. 2836 // No need to allocate this register.
2837 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2837 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2838 int index = vector->GetIndex(slot); 2838 int index = vector->GetIndex(slot);
2839 __ li(slot_register, Operand(Smi::FromInt(index))); 2839 __ li(slot_register, Operand(Smi::FromInt(index)));
2840 } 2840 }
2841 2841
2842 2842
2843 template <class T> 2843 template <class T>
2844 void LCodeGen::EmitVectorStoreICRegisters(T* instr) { 2844 void LCodeGen::EmitVectorStoreICRegisters(T* instr) {
2845 Register vector_register = ToRegister(instr->temp_vector()); 2845 Register vector_register = ToRegister(instr->temp_vector());
2846 Register slot_register = ToRegister(instr->temp_slot()); 2846 Register slot_register = ToRegister(instr->temp_slot());
2847 2847
2848 AllowDeferredHandleDereference vector_structure_check; 2848 AllowDeferredHandleDereference vector_structure_check;
2849 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2849 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2850 __ li(vector_register, vector); 2850 __ li(vector_register, vector);
2851 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2851 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2852 int index = vector->GetIndex(slot); 2852 int index = vector->GetIndex(slot);
2853 __ li(slot_register, Operand(Smi::FromInt(index))); 2853 __ li(slot_register, Operand(Smi::FromInt(index)));
2854 } 2854 }
2855 2855
2856 2856
2857 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2857 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2858 DCHECK(ToRegister(instr->context()).is(cp)); 2858 DCHECK(ToRegister(instr->context()).is(cp));
2859 DCHECK(ToRegister(instr->global_object()) 2859 DCHECK(ToRegister(instr->global_object())
2860 .is(LoadDescriptor::ReceiverRegister())); 2860 .is(LoadDescriptor::ReceiverRegister()));
2861 DCHECK(ToRegister(instr->result()).is(v0)); 2861 DCHECK(ToRegister(instr->result()).is(v0));
(...skipping 3223 matching lines...) Expand 10 before | Expand all | Expand 10 after
6085 __ Push(at, ToRegister(instr->function())); 6085 __ Push(at, ToRegister(instr->function()));
6086 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6086 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6087 RecordSafepoint(Safepoint::kNoLazyDeopt); 6087 RecordSafepoint(Safepoint::kNoLazyDeopt);
6088 } 6088 }
6089 6089
6090 6090
6091 #undef __ 6091 #undef __
6092 6092
6093 } // namespace internal 6093 } // namespace internal
6094 } // namespace v8 6094 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698