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

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

Issue 1060263003: Revert of 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 | « src/hydrogen-instructions.h ('k') | src/ic/ic.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 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_IA32 7 #if V8_TARGET_ARCH_IA32
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 3217 matching lines...) Expand 10 before | Expand all | Expand 10 after
3228 base_offset); 3228 base_offset);
3229 } 3229 }
3230 } 3230 }
3231 3231
3232 3232
3233 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3233 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3234 DCHECK(ToRegister(instr->context()).is(esi)); 3234 DCHECK(ToRegister(instr->context()).is(esi));
3235 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3235 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3236 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3236 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3237 3237
3238 if (instr->hydrogen()->HasVectorAndSlot()) { 3238 if (FLAG_vector_ics) {
3239 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3239 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3240 } 3240 }
3241 3241
3242 Handle<Code> ic = 3242 Handle<Code> ic =
3243 CodeFactory::KeyedLoadICInOptimizedCode( 3243 CodeFactory::KeyedLoadICInOptimizedCode(
3244 isolate(), instr->hydrogen()->initialization_state()).code(); 3244 isolate(), instr->hydrogen()->initialization_state()).code();
3245 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3245 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3246 } 3246 }
3247 3247
3248 3248
(...skipping 2513 matching lines...) Expand 10 before | Expand all | Expand 10 after
5762 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5762 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5763 RecordSafepoint(Safepoint::kNoLazyDeopt); 5763 RecordSafepoint(Safepoint::kNoLazyDeopt);
5764 } 5764 }
5765 5765
5766 5766
5767 #undef __ 5767 #undef __
5768 5768
5769 } } // namespace v8::internal 5769 } } // namespace v8::internal
5770 5770
5771 #endif // V8_TARGET_ARCH_IA32 5771 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698