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

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

Issue 641373002: Introduce FeedbackVectorSlot type - better than int. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips/full-codegen-mips.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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
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 2816 matching lines...) Expand 10 before | Expand all | Expand 10 after
2827 2827
2828 template <class T> 2828 template <class T>
2829 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 2829 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
2830 DCHECK(FLAG_vector_ics); 2830 DCHECK(FLAG_vector_ics);
2831 Register vector = ToRegister(instr->temp_vector()); 2831 Register vector = ToRegister(instr->temp_vector());
2832 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); 2832 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister()));
2833 __ mov(vector, instr->hydrogen()->feedback_vector()); 2833 __ mov(vector, instr->hydrogen()->feedback_vector());
2834 // No need to allocate this register. 2834 // No need to allocate this register.
2835 DCHECK(VectorLoadICDescriptor::SlotRegister().is(eax)); 2835 DCHECK(VectorLoadICDescriptor::SlotRegister().is(eax));
2836 __ mov(VectorLoadICDescriptor::SlotRegister(), 2836 __ mov(VectorLoadICDescriptor::SlotRegister(),
2837 Immediate(Smi::FromInt(instr->hydrogen()->slot()))); 2837 Immediate(Smi::FromInt(instr->hydrogen()->slot().ToInt())));
2838 } 2838 }
2839 2839
2840 2840
2841 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2841 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2842 DCHECK(ToRegister(instr->context()).is(esi)); 2842 DCHECK(ToRegister(instr->context()).is(esi));
2843 DCHECK(ToRegister(instr->global_object()) 2843 DCHECK(ToRegister(instr->global_object())
2844 .is(LoadDescriptor::ReceiverRegister())); 2844 .is(LoadDescriptor::ReceiverRegister()));
2845 DCHECK(ToRegister(instr->result()).is(eax)); 2845 DCHECK(ToRegister(instr->result()).is(eax));
2846 2846
2847 __ mov(LoadDescriptor::NameRegister(), instr->name()); 2847 __ mov(LoadDescriptor::NameRegister(), instr->name());
(...skipping 2850 matching lines...) Expand 10 before | Expand all | Expand 10 after
5698 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5698 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5699 RecordSafepoint(Safepoint::kNoLazyDeopt); 5699 RecordSafepoint(Safepoint::kNoLazyDeopt);
5700 } 5700 }
5701 5701
5702 5702
5703 #undef __ 5703 #undef __
5704 5704
5705 } } // namespace v8::internal 5705 } } // namespace v8::internal
5706 5706
5707 #endif // V8_TARGET_ARCH_IA32 5707 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698