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

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

Issue 1067573003: VectorICs: megamorphic keyed loads in crankshaft don't need a vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/code-factory.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3617 matching lines...) Expand 10 before | Expand all | Expand 10 after
3628 Deoptimizer::kHole); 3628 Deoptimizer::kHole);
3629 } 3629 }
3630 } 3630 }
3631 } 3631 }
3632 3632
3633 3633
3634 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3634 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3635 DCHECK(ToRegister(instr->context()).is(cp)); 3635 DCHECK(ToRegister(instr->context()).is(cp));
3636 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3636 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3637 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3637 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3638 if (FLAG_vector_ics) { 3638
3639 if (instr->hydrogen()->HasVectorAndSlot()) {
3639 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3640 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3640 } 3641 }
3641 3642
3642 Handle<Code> ic = 3643 Handle<Code> ic =
3643 CodeFactory::KeyedLoadICInOptimizedCode( 3644 CodeFactory::KeyedLoadICInOptimizedCode(
3644 isolate(), instr->hydrogen()->initialization_state()).code(); 3645 isolate(), instr->hydrogen()->initialization_state()).code();
3645 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3646 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3646 3647
3647 DCHECK(ToRegister(instr->result()).Is(x0)); 3648 DCHECK(ToRegister(instr->result()).Is(x0));
3648 } 3649 }
(...skipping 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after
6023 Handle<ScopeInfo> scope_info = instr->scope_info(); 6024 Handle<ScopeInfo> scope_info = instr->scope_info();
6024 __ Push(scope_info); 6025 __ Push(scope_info);
6025 __ Push(ToRegister(instr->function())); 6026 __ Push(ToRegister(instr->function()));
6026 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6027 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6027 RecordSafepoint(Safepoint::kNoLazyDeopt); 6028 RecordSafepoint(Safepoint::kNoLazyDeopt);
6028 } 6029 }
6029 6030
6030 6031
6031 6032
6032 } } // namespace v8::internal 6033 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698