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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/hydrogen-instructions.h ('k') | src/ic/arm/ic-arm.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
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/codegen.h" 10 #include "src/codegen.h"
(...skipping 2716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 2727 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
2728 Register vector_register = ToRegister(instr->temp_vector()); 2728 Register vector_register = ToRegister(instr->temp_vector());
2729 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); 2729 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
2730 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); 2730 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
2731 DCHECK(slot_register.is(eax)); 2731 DCHECK(slot_register.is(eax));
2732 2732
2733 AllowDeferredHandleDereference vector_structure_check; 2733 AllowDeferredHandleDereference vector_structure_check;
2734 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2734 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2735 __ mov(vector_register, vector); 2735 __ mov(vector_register, vector);
2736 // No need to allocate this register. 2736 // No need to allocate this register.
2737 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2737 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2738 int index = vector->GetIndex(slot); 2738 int index = vector->GetIndex(slot);
2739 __ mov(slot_register, Immediate(Smi::FromInt(index))); 2739 __ mov(slot_register, Immediate(Smi::FromInt(index)));
2740 } 2740 }
2741 2741
2742 2742
2743 template <class T> 2743 template <class T>
2744 void LCodeGen::EmitVectorStoreICRegisters(T* instr) { 2744 void LCodeGen::EmitVectorStoreICRegisters(T* instr) {
2745 Register vector_register = ToRegister(instr->temp_vector()); 2745 Register vector_register = ToRegister(instr->temp_vector());
2746 Register slot_register = ToRegister(instr->temp_slot()); 2746 Register slot_register = ToRegister(instr->temp_slot());
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 __ mov(vector_register, vector); 2750 __ mov(vector_register, vector);
2751 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2751 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2752 int index = vector->GetIndex(slot); 2752 int index = vector->GetIndex(slot);
2753 __ mov(slot_register, Immediate(Smi::FromInt(index))); 2753 __ mov(slot_register, Immediate(Smi::FromInt(index)));
2754 } 2754 }
2755 2755
2756 2756
2757 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2757 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2758 DCHECK(ToRegister(instr->context()).is(esi)); 2758 DCHECK(ToRegister(instr->context()).is(esi));
2759 DCHECK(ToRegister(instr->global_object()) 2759 DCHECK(ToRegister(instr->global_object())
2760 .is(LoadDescriptor::ReceiverRegister())); 2760 .is(LoadDescriptor::ReceiverRegister()));
2761 DCHECK(ToRegister(instr->result()).is(eax)); 2761 DCHECK(ToRegister(instr->result()).is(eax));
(...skipping 2961 matching lines...) Expand 10 before | Expand all | Expand 10 after
5723 RecordSafepoint(Safepoint::kNoLazyDeopt); 5723 RecordSafepoint(Safepoint::kNoLazyDeopt);
5724 } 5724 }
5725 5725
5726 5726
5727 #undef __ 5727 #undef __
5728 5728
5729 } // namespace internal 5729 } // namespace internal
5730 } // namespace v8 5730 } // namespace v8
5731 5731
5732 #endif // V8_TARGET_ARCH_IA32 5732 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ic/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698