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

Side by Side Diff: src/x64/lithium-codegen-x64.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/mips64/lithium-codegen-mips64.cc ('k') | 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 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 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
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 3292 matching lines...) Expand 10 before | Expand all | Expand 10 after
3303 offset); 3303 offset);
3304 } 3304 }
3305 } 3305 }
3306 3306
3307 3307
3308 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3308 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3309 DCHECK(ToRegister(instr->context()).is(rsi)); 3309 DCHECK(ToRegister(instr->context()).is(rsi));
3310 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3310 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3311 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3311 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3312 3312
3313 if (FLAG_vector_ics) { 3313 if (instr->hydrogen()->HasVectorAndSlot()) {
3314 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3314 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3315 } 3315 }
3316 3316
3317 Handle<Code> ic = 3317 Handle<Code> ic =
3318 CodeFactory::KeyedLoadICInOptimizedCode( 3318 CodeFactory::KeyedLoadICInOptimizedCode(
3319 isolate(), instr->hydrogen()->initialization_state()).code(); 3319 isolate(), instr->hydrogen()->initialization_state()).code();
3320 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3320 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3321 } 3321 }
3322 3322
3323 3323
(...skipping 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after
5926 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5926 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5927 RecordSafepoint(Safepoint::kNoLazyDeopt); 5927 RecordSafepoint(Safepoint::kNoLazyDeopt);
5928 } 5928 }
5929 5929
5930 5930
5931 #undef __ 5931 #undef __
5932 5932
5933 } } // namespace v8::internal 5933 } } // namespace v8::internal
5934 5934
5935 #endif // V8_TARGET_ARCH_X64 5935 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698