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 645323002: X87: Introduce FeedbackVectorSlot type - better than int. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 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/x87/full-codegen-x87.cc ('k') | no next file » | 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3114 matching lines...) Expand 10 before | Expand all | Expand 10 after
3125 3125
3126 template <class T> 3126 template <class T>
3127 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 3127 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
3128 DCHECK(FLAG_vector_ics); 3128 DCHECK(FLAG_vector_ics);
3129 Register vector = ToRegister(instr->temp_vector()); 3129 Register vector = ToRegister(instr->temp_vector());
3130 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); 3130 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister()));
3131 __ mov(vector, instr->hydrogen()->feedback_vector()); 3131 __ mov(vector, instr->hydrogen()->feedback_vector());
3132 // No need to allocate this register. 3132 // No need to allocate this register.
3133 DCHECK(VectorLoadICDescriptor::SlotRegister().is(eax)); 3133 DCHECK(VectorLoadICDescriptor::SlotRegister().is(eax));
3134 __ mov(VectorLoadICDescriptor::SlotRegister(), 3134 __ mov(VectorLoadICDescriptor::SlotRegister(),
3135 Immediate(Smi::FromInt(instr->hydrogen()->slot()))); 3135 Immediate(Smi::FromInt(instr->hydrogen()->slot().ToInt())));
3136 } 3136 }
3137 3137
3138 3138
3139 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 3139 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
3140 DCHECK(ToRegister(instr->context()).is(esi)); 3140 DCHECK(ToRegister(instr->context()).is(esi));
3141 DCHECK(ToRegister(instr->global_object()) 3141 DCHECK(ToRegister(instr->global_object())
3142 .is(LoadDescriptor::ReceiverRegister())); 3142 .is(LoadDescriptor::ReceiverRegister()));
3143 DCHECK(ToRegister(instr->result()).is(eax)); 3143 DCHECK(ToRegister(instr->result()).is(eax));
3144 3144
3145 __ mov(LoadDescriptor::NameRegister(), instr->name()); 3145 __ mov(LoadDescriptor::NameRegister(), instr->name());
(...skipping 3151 matching lines...) Expand 10 before | Expand all | Expand 10 after
6297 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6297 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6298 RecordSafepoint(Safepoint::kNoLazyDeopt); 6298 RecordSafepoint(Safepoint::kNoLazyDeopt);
6299 } 6299 }
6300 6300
6301 6301
6302 #undef __ 6302 #undef __
6303 6303
6304 } } // namespace v8::internal 6304 } } // namespace v8::internal
6305 6305
6306 #endif // V8_TARGET_ARCH_X87 6306 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/full-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698