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

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

Issue 1093433004: X87: 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X87 7 #if V8_TARGET_ARCH_X87
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 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after
3495 base_offset); 3495 base_offset);
3496 } 3496 }
3497 } 3497 }
3498 3498
3499 3499
3500 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3500 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3501 DCHECK(ToRegister(instr->context()).is(esi)); 3501 DCHECK(ToRegister(instr->context()).is(esi));
3502 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3502 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3503 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3503 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3504 3504
3505 if (FLAG_vector_ics) { 3505 if (instr->hydrogen()->HasVectorAndSlot()) {
3506 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3506 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3507 } 3507 }
3508 3508
3509 Handle<Code> ic = 3509 Handle<Code> ic =
3510 CodeFactory::KeyedLoadICInOptimizedCode( 3510 CodeFactory::KeyedLoadICInOptimizedCode(
3511 isolate(), instr->hydrogen()->initialization_state()).code(); 3511 isolate(), instr->hydrogen()->initialization_state()).code();
3512 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3512 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3513 } 3513 }
3514 3514
3515 3515
(...skipping 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after
6344 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6344 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6345 RecordSafepoint(Safepoint::kNoLazyDeopt); 6345 RecordSafepoint(Safepoint::kNoLazyDeopt);
6346 } 6346 }
6347 6347
6348 6348
6349 #undef __ 6349 #undef __
6350 6350
6351 } } // namespace v8::internal 6351 } } // namespace v8::internal
6352 6352
6353 #endif // V8_TARGET_ARCH_X87 6353 #endif // V8_TARGET_ARCH_X87
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