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

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

Issue 1085913003: PPC: VectorICs: megamorphic keyed loads in crankshaft don't need a vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | 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 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 3525 matching lines...) Expand 10 before | Expand all | Expand 10 after
3536 3536
3537 return MemOperand(base, scratch); 3537 return MemOperand(base, scratch);
3538 } 3538 }
3539 3539
3540 3540
3541 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3541 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3542 DCHECK(ToRegister(instr->context()).is(cp)); 3542 DCHECK(ToRegister(instr->context()).is(cp));
3543 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3543 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3544 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3544 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3545 3545
3546 if (FLAG_vector_ics) { 3546 if (instr->hydrogen()->HasVectorAndSlot()) {
3547 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3547 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3548 } 3548 }
3549 3549
3550 Handle<Code> ic = 3550 Handle<Code> ic =
3551 CodeFactory::KeyedLoadICInOptimizedCode( 3551 CodeFactory::KeyedLoadICInOptimizedCode(
3552 isolate(), instr->hydrogen()->initialization_state()).code(); 3552 isolate(), instr->hydrogen()->initialization_state()).code();
3553 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3553 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3554 } 3554 }
3555 3555
3556 3556
(...skipping 2618 matching lines...) Expand 10 before | Expand all | Expand 10 after
6175 __ Push(scope_info); 6175 __ Push(scope_info);
6176 __ push(ToRegister(instr->function())); 6176 __ push(ToRegister(instr->function()));
6177 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6177 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6178 RecordSafepoint(Safepoint::kNoLazyDeopt); 6178 RecordSafepoint(Safepoint::kNoLazyDeopt);
6179 } 6179 }
6180 6180
6181 6181
6182 #undef __ 6182 #undef __
6183 } 6183 }
6184 } // namespace v8::internal 6184 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698