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

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

Issue 644583004: MIPS: Introduce FeedbackVectorSlot type - better than int. (Closed) Base URL: https://v8.googlecode.com/svn/branches/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 | Annotate | Revision Log
« no previous file with comments | « src/mips64/full-codegen-mips64.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 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after
2856 2856
2857 template <class T> 2857 template <class T>
2858 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 2858 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
2859 DCHECK(FLAG_vector_ics); 2859 DCHECK(FLAG_vector_ics);
2860 Register vector = ToRegister(instr->temp_vector()); 2860 Register vector = ToRegister(instr->temp_vector());
2861 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); 2861 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister()));
2862 __ li(vector, instr->hydrogen()->feedback_vector()); 2862 __ li(vector, instr->hydrogen()->feedback_vector());
2863 // No need to allocate this register. 2863 // No need to allocate this register.
2864 DCHECK(VectorLoadICDescriptor::SlotRegister().is(a0)); 2864 DCHECK(VectorLoadICDescriptor::SlotRegister().is(a0));
2865 __ li(VectorLoadICDescriptor::SlotRegister(), 2865 __ li(VectorLoadICDescriptor::SlotRegister(),
2866 Operand(Smi::FromInt(instr->hydrogen()->slot()))); 2866 Operand(Smi::FromInt(instr->hydrogen()->slot().ToInt())));
2867 } 2867 }
2868 2868
2869 2869
2870 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2870 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2871 DCHECK(ToRegister(instr->context()).is(cp)); 2871 DCHECK(ToRegister(instr->context()).is(cp));
2872 DCHECK(ToRegister(instr->global_object()) 2872 DCHECK(ToRegister(instr->global_object())
2873 .is(LoadDescriptor::ReceiverRegister())); 2873 .is(LoadDescriptor::ReceiverRegister()));
2874 DCHECK(ToRegister(instr->result()).is(v0)); 2874 DCHECK(ToRegister(instr->result()).is(v0));
2875 2875
2876 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); 2876 __ li(LoadDescriptor::NameRegister(), Operand(instr->name()));
(...skipping 3079 matching lines...) Expand 10 before | Expand all | Expand 10 after
5956 __ li(at, scope_info); 5956 __ li(at, scope_info);
5957 __ Push(at, ToRegister(instr->function())); 5957 __ Push(at, ToRegister(instr->function()));
5958 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5958 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5959 RecordSafepoint(Safepoint::kNoLazyDeopt); 5959 RecordSafepoint(Safepoint::kNoLazyDeopt);
5960 } 5960 }
5961 5961
5962 5962
5963 #undef __ 5963 #undef __
5964 5964
5965 } } // namespace v8::internal 5965 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698