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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ic/ic.cc ('k') | src/mips64/lithium-codegen-mips64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after
3335 return MemOperand(scratch0(), base_offset); 3335 return MemOperand(scratch0(), base_offset);
3336 } 3336 }
3337 } 3337 }
3338 3338
3339 3339
3340 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3340 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3341 DCHECK(ToRegister(instr->context()).is(cp)); 3341 DCHECK(ToRegister(instr->context()).is(cp));
3342 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3342 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3343 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3343 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3344 3344
3345 if (instr->hydrogen()->HasVectorAndSlot()) { 3345 if (FLAG_vector_ics) {
3346 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3346 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3347 } 3347 }
3348 3348
3349 Handle<Code> ic = 3349 Handle<Code> ic =
3350 CodeFactory::KeyedLoadICInOptimizedCode( 3350 CodeFactory::KeyedLoadICInOptimizedCode(
3351 isolate(), instr->hydrogen()->initialization_state()).code(); 3351 isolate(), instr->hydrogen()->initialization_state()).code();
3352 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3352 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3353 } 3353 }
3354 3354
3355 3355
(...skipping 2625 matching lines...) Expand 10 before | Expand all | Expand 10 after
5981 __ li(at, scope_info); 5981 __ li(at, scope_info);
5982 __ Push(at, ToRegister(instr->function())); 5982 __ Push(at, ToRegister(instr->function()));
5983 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5983 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5984 RecordSafepoint(Safepoint::kNoLazyDeopt); 5984 RecordSafepoint(Safepoint::kNoLazyDeopt);
5985 } 5985 }
5986 5986
5987 5987
5988 #undef __ 5988 #undef __
5989 5989
5990 } } // namespace v8::internal 5990 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698