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

Side by Side Diff: src/x64/lithium-codegen-x64.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/utils.cc ('k') | src/x87/lithium-codegen-x87.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
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/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 2731 matching lines...) Expand 10 before | Expand all | Expand 10 after
2742 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 2742 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
2743 Register vector_register = ToRegister(instr->temp_vector()); 2743 Register vector_register = ToRegister(instr->temp_vector());
2744 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); 2744 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
2745 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); 2745 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
2746 DCHECK(slot_register.is(rax)); 2746 DCHECK(slot_register.is(rax));
2747 2747
2748 AllowDeferredHandleDereference vector_structure_check; 2748 AllowDeferredHandleDereference vector_structure_check;
2749 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2749 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2750 __ Move(vector_register, vector); 2750 __ Move(vector_register, vector);
2751 // No need to allocate this register. 2751 // No need to allocate this register.
2752 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2752 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2753 int index = vector->GetIndex(slot); 2753 int index = vector->GetIndex(slot);
2754 __ Move(slot_register, Smi::FromInt(index)); 2754 __ Move(slot_register, Smi::FromInt(index));
2755 } 2755 }
2756 2756
2757 2757
2758 template <class T> 2758 template <class T>
2759 void LCodeGen::EmitVectorStoreICRegisters(T* instr) { 2759 void LCodeGen::EmitVectorStoreICRegisters(T* instr) {
2760 Register vector_register = ToRegister(instr->temp_vector()); 2760 Register vector_register = ToRegister(instr->temp_vector());
2761 Register slot_register = ToRegister(instr->temp_slot()); 2761 Register slot_register = ToRegister(instr->temp_slot());
2762 2762
2763 AllowDeferredHandleDereference vector_structure_check; 2763 AllowDeferredHandleDereference vector_structure_check;
2764 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2764 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2765 __ Move(vector_register, vector); 2765 __ Move(vector_register, vector);
2766 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2766 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2767 int index = vector->GetIndex(slot); 2767 int index = vector->GetIndex(slot);
2768 __ Move(slot_register, Smi::FromInt(index)); 2768 __ Move(slot_register, Smi::FromInt(index));
2769 } 2769 }
2770 2770
2771 2771
2772 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2772 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2773 DCHECK(ToRegister(instr->context()).is(rsi)); 2773 DCHECK(ToRegister(instr->context()).is(rsi));
2774 DCHECK(ToRegister(instr->global_object()) 2774 DCHECK(ToRegister(instr->global_object())
2775 .is(LoadDescriptor::ReceiverRegister())); 2775 .is(LoadDescriptor::ReceiverRegister()));
2776 DCHECK(ToRegister(instr->result()).is(rax)); 2776 DCHECK(ToRegister(instr->result()).is(rax));
(...skipping 3137 matching lines...) Expand 10 before | Expand all | Expand 10 after
5914 RecordSafepoint(Safepoint::kNoLazyDeopt); 5914 RecordSafepoint(Safepoint::kNoLazyDeopt);
5915 } 5915 }
5916 5916
5917 5917
5918 #undef __ 5918 #undef __
5919 5919
5920 } // namespace internal 5920 } // namespace internal
5921 } // namespace v8 5921 } // namespace v8
5922 5922
5923 #endif // V8_TARGET_ARCH_X64 5923 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/utils.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698