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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.cc

Issue 2096653003: [ic] Don't pass receiver and name to LoadGlobalIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@store-name-in-metavector
Patch Set: Removed name parameter. Created 4 years, 6 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/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/s390/lithium-s390.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2650 matching lines...) Expand 10 before | Expand all | Expand 10 after
2661 AllowDeferredHandleDereference vector_structure_check; 2661 AllowDeferredHandleDereference vector_structure_check;
2662 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2662 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2663 __ Move(vector_register, vector); 2663 __ Move(vector_register, vector);
2664 FeedbackVectorSlot slot = instr->hydrogen()->slot(); 2664 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2665 int index = vector->GetIndex(slot); 2665 int index = vector->GetIndex(slot);
2666 __ LoadSmiLiteral(slot_register, Smi::FromInt(index)); 2666 __ LoadSmiLiteral(slot_register, Smi::FromInt(index));
2667 } 2667 }
2668 2668
2669 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2669 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2670 DCHECK(ToRegister(instr->context()).is(cp)); 2670 DCHECK(ToRegister(instr->context()).is(cp));
2671 DCHECK(ToRegister(instr->global_object())
2672 .is(LoadDescriptor::ReceiverRegister()));
2673 DCHECK(ToRegister(instr->result()).is(r2)); 2671 DCHECK(ToRegister(instr->result()).is(r2));
2674 2672
2675 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name()));
2676 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 2673 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
2677 Handle<Code> ic = 2674 Handle<Code> ic =
2678 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) 2675 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode())
2679 .code(); 2676 .code();
2680 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2677 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2681 } 2678 }
2682 2679
2683 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2680 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2684 Register context = ToRegister(instr->context()); 2681 Register context = ToRegister(instr->context());
2685 Register result = ToRegister(instr->result()); 2682 Register result = ToRegister(instr->result());
(...skipping 3001 matching lines...) Expand 10 before | Expand all | Expand 10 after
5687 __ LoadP(result, 5684 __ LoadP(result,
5688 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5685 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5689 __ bind(deferred->exit()); 5686 __ bind(deferred->exit());
5690 __ bind(&done); 5687 __ bind(&done);
5691 } 5688 }
5692 5689
5693 #undef __ 5690 #undef __
5694 5691
5695 } // namespace internal 5692 } // namespace internal
5696 } // namespace v8 5693 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/s390/lithium-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698