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

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

Issue 1144063002: Cleanup interface descriptors to reflect that vectors are part of loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes for test failures. Created 5 years, 7 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/mips/interface-descriptors-mips.cc ('k') | src/mips/lithium-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.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 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after
2902 2902
2903 if (no_frame_start != -1) { 2903 if (no_frame_start != -1) {
2904 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); 2904 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset());
2905 } 2905 }
2906 } 2906 }
2907 2907
2908 2908
2909 template <class T> 2909 template <class T>
2910 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 2910 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
2911 Register vector_register = ToRegister(instr->temp_vector()); 2911 Register vector_register = ToRegister(instr->temp_vector());
2912 Register slot_register = VectorLoadICDescriptor::SlotRegister(); 2912 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
2913 DCHECK(vector_register.is(VectorLoadICDescriptor::VectorRegister())); 2913 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
2914 DCHECK(slot_register.is(a0)); 2914 DCHECK(slot_register.is(a0));
2915 2915
2916 AllowDeferredHandleDereference vector_structure_check; 2916 AllowDeferredHandleDereference vector_structure_check;
2917 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2917 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2918 __ li(vector_register, vector); 2918 __ li(vector_register, vector);
2919 // No need to allocate this register. 2919 // No need to allocate this register.
2920 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 2920 FeedbackVectorICSlot slot = instr->hydrogen()->slot();
2921 int index = vector->GetIndex(slot); 2921 int index = vector->GetIndex(slot);
2922 __ li(slot_register, Operand(Smi::FromInt(index))); 2922 __ li(slot_register, Operand(Smi::FromInt(index)));
2923 } 2923 }
(...skipping 3144 matching lines...) Expand 10 before | Expand all | Expand 10 after
6068 __ li(at, scope_info); 6068 __ li(at, scope_info);
6069 __ Push(at, ToRegister(instr->function())); 6069 __ Push(at, ToRegister(instr->function()));
6070 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6070 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6071 RecordSafepoint(Safepoint::kNoLazyDeopt); 6071 RecordSafepoint(Safepoint::kNoLazyDeopt);
6072 } 6072 }
6073 6073
6074 6074
6075 #undef __ 6075 #undef __
6076 6076
6077 } } // namespace v8::internal 6077 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/interface-descriptors-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698