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

Side by Side Diff: src/mips/lithium-codegen-mips.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/interpreter/bytecode-generator.cc ('k') | src/mips64/lithium-codegen-mips64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 2719 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
2720 Register vector_register = ToRegister(instr->temp_vector()); 2720 Register vector_register = ToRegister(instr->temp_vector());
2721 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); 2721 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
2722 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); 2722 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
2723 DCHECK(slot_register.is(a0)); 2723 DCHECK(slot_register.is(a0));
2724 2724
2725 AllowDeferredHandleDereference vector_structure_check; 2725 AllowDeferredHandleDereference vector_structure_check;
2726 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2726 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2727 __ li(vector_register, vector); 2727 __ li(vector_register, vector);
2728 // No need to allocate this register. 2728 // No need to allocate this register.
2729 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2729 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2730 int index = vector->GetIndex(slot); 2730 int index = vector->GetIndex(slot);
2731 __ li(slot_register, Operand(Smi::FromInt(index))); 2731 __ li(slot_register, Operand(Smi::FromInt(index)));
2732 } 2732 }
2733 2733
2734 2734
2735 template <class T> 2735 template <class T>
2736 void LCodeGen::EmitVectorStoreICRegisters(T* instr) { 2736 void LCodeGen::EmitVectorStoreICRegisters(T* instr) {
2737 Register vector_register = ToRegister(instr->temp_vector()); 2737 Register vector_register = ToRegister(instr->temp_vector());
2738 Register slot_register = ToRegister(instr->temp_slot()); 2738 Register slot_register = ToRegister(instr->temp_slot());
2739 2739
2740 AllowDeferredHandleDereference vector_structure_check; 2740 AllowDeferredHandleDereference vector_structure_check;
2741 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2741 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2742 __ li(vector_register, vector); 2742 __ li(vector_register, vector);
2743 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2743 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2744 int index = vector->GetIndex(slot); 2744 int index = vector->GetIndex(slot);
2745 __ li(slot_register, Operand(Smi::FromInt(index))); 2745 __ li(slot_register, Operand(Smi::FromInt(index)));
2746 } 2746 }
2747 2747
2748 2748
2749 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2749 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2750 DCHECK(ToRegister(instr->context()).is(cp)); 2750 DCHECK(ToRegister(instr->context()).is(cp));
2751 DCHECK(ToRegister(instr->global_object()) 2751 DCHECK(ToRegister(instr->global_object())
2752 .is(LoadDescriptor::ReceiverRegister())); 2752 .is(LoadDescriptor::ReceiverRegister()));
2753 DCHECK(ToRegister(instr->result()).is(v0)); 2753 DCHECK(ToRegister(instr->result()).is(v0));
(...skipping 3146 matching lines...) Expand 10 before | Expand all | Expand 10 after
5900 __ Push(at, ToRegister(instr->function())); 5900 __ Push(at, ToRegister(instr->function()));
5901 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5901 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5902 RecordSafepoint(Safepoint::kNoLazyDeopt); 5902 RecordSafepoint(Safepoint::kNoLazyDeopt);
5903 } 5903 }
5904 5904
5905 5905
5906 #undef __ 5906 #undef __
5907 5907
5908 } // namespace internal 5908 } // namespace internal
5909 } // namespace v8 5909 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698