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

Side by Side Diff: src/x87/lithium-codegen-x87.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/x64/lithium-codegen-x64.cc ('k') | test/cctest/interpreter/test-bytecode-generator.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_X87 5 #if V8_TARGET_ARCH_X87
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 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after
3008 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 3008 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
3009 Register vector_register = ToRegister(instr->temp_vector()); 3009 Register vector_register = ToRegister(instr->temp_vector());
3010 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); 3010 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
3011 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); 3011 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
3012 DCHECK(slot_register.is(eax)); 3012 DCHECK(slot_register.is(eax));
3013 3013
3014 AllowDeferredHandleDereference vector_structure_check; 3014 AllowDeferredHandleDereference vector_structure_check;
3015 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 3015 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
3016 __ mov(vector_register, vector); 3016 __ mov(vector_register, vector);
3017 // No need to allocate this register. 3017 // No need to allocate this register.
3018 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 3018 FeedbackVectorSlot slot = instr->hydrogen()->slot();
3019 int index = vector->GetIndex(slot); 3019 int index = vector->GetIndex(slot);
3020 __ mov(slot_register, Immediate(Smi::FromInt(index))); 3020 __ mov(slot_register, Immediate(Smi::FromInt(index)));
3021 } 3021 }
3022 3022
3023 3023
3024 template <class T> 3024 template <class T>
3025 void LCodeGen::EmitVectorStoreICRegisters(T* instr) { 3025 void LCodeGen::EmitVectorStoreICRegisters(T* instr) {
3026 Register vector_register = ToRegister(instr->temp_vector()); 3026 Register vector_register = ToRegister(instr->temp_vector());
3027 Register slot_register = ToRegister(instr->temp_slot()); 3027 Register slot_register = ToRegister(instr->temp_slot());
3028 3028
3029 AllowDeferredHandleDereference vector_structure_check; 3029 AllowDeferredHandleDereference vector_structure_check;
3030 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 3030 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
3031 __ mov(vector_register, vector); 3031 __ mov(vector_register, vector);
3032 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 3032 FeedbackVectorSlot slot = instr->hydrogen()->slot();
3033 int index = vector->GetIndex(slot); 3033 int index = vector->GetIndex(slot);
3034 __ mov(slot_register, Immediate(Smi::FromInt(index))); 3034 __ mov(slot_register, Immediate(Smi::FromInt(index)));
3035 } 3035 }
3036 3036
3037 3037
3038 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 3038 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
3039 DCHECK(ToRegister(instr->context()).is(esi)); 3039 DCHECK(ToRegister(instr->context()).is(esi));
3040 DCHECK(ToRegister(instr->global_object()) 3040 DCHECK(ToRegister(instr->global_object())
3041 .is(LoadDescriptor::ReceiverRegister())); 3041 .is(LoadDescriptor::ReceiverRegister()));
3042 DCHECK(ToRegister(instr->result()).is(eax)); 3042 DCHECK(ToRegister(instr->result()).is(eax));
(...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after
6338 RecordSafepoint(Safepoint::kNoLazyDeopt); 6338 RecordSafepoint(Safepoint::kNoLazyDeopt);
6339 } 6339 }
6340 6340
6341 6341
6342 #undef __ 6342 #undef __
6343 6343
6344 } // namespace internal 6344 } // namespace internal
6345 } // namespace v8 6345 } // namespace v8
6346 6346
6347 #endif // V8_TARGET_ARCH_X87 6347 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698