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

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

Issue 1145223003: PPC: Cleanup interface descriptors to reflect that vectors are part of loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/ppc/interface-descriptors-ppc.cc ('k') | src/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 3031 matching lines...) Expand 10 before | Expand all | Expand 10 after
3042 3042
3043 if (no_frame_start != -1) { 3043 if (no_frame_start != -1) {
3044 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); 3044 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset());
3045 } 3045 }
3046 } 3046 }
3047 3047
3048 3048
3049 template <class T> 3049 template <class T>
3050 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 3050 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
3051 Register vector_register = ToRegister(instr->temp_vector()); 3051 Register vector_register = ToRegister(instr->temp_vector());
3052 Register slot_register = VectorLoadICDescriptor::SlotRegister(); 3052 Register slot_register = LoadDescriptor::SlotRegister();
3053 DCHECK(vector_register.is(VectorLoadICDescriptor::VectorRegister())); 3053 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
3054 DCHECK(slot_register.is(r3)); 3054 DCHECK(slot_register.is(r3));
3055 3055
3056 AllowDeferredHandleDereference vector_structure_check; 3056 AllowDeferredHandleDereference vector_structure_check;
3057 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 3057 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
3058 __ Move(vector_register, vector); 3058 __ Move(vector_register, vector);
3059 // No need to allocate this register. 3059 // No need to allocate this register.
3060 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 3060 FeedbackVectorICSlot slot = instr->hydrogen()->slot();
3061 int index = vector->GetIndex(slot); 3061 int index = vector->GetIndex(slot);
3062 __ mov(slot_register, Operand(Smi::FromInt(index))); 3062 __ mov(slot_register, Operand(Smi::FromInt(index)));
3063 } 3063 }
(...skipping 3216 matching lines...) Expand 10 before | Expand all | Expand 10 after
6280 __ Push(scope_info); 6280 __ Push(scope_info);
6281 __ push(ToRegister(instr->function())); 6281 __ push(ToRegister(instr->function()));
6282 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6282 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6283 RecordSafepoint(Safepoint::kNoLazyDeopt); 6283 RecordSafepoint(Safepoint::kNoLazyDeopt);
6284 } 6284 }
6285 6285
6286 6286
6287 #undef __ 6287 #undef __
6288 } 6288 }
6289 } // namespace v8::internal 6289 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ppc/interface-descriptors-ppc.cc ('k') | src/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698