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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.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/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.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 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/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
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 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after
3057 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 3057 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
3058 __ Mov(vector_register, vector); 3058 __ Mov(vector_register, vector);
3059 FeedbackVectorSlot slot = instr->hydrogen()->slot(); 3059 FeedbackVectorSlot slot = instr->hydrogen()->slot();
3060 int index = vector->GetIndex(slot); 3060 int index = vector->GetIndex(slot);
3061 __ Mov(slot_register, Smi::FromInt(index)); 3061 __ Mov(slot_register, Smi::FromInt(index));
3062 } 3062 }
3063 3063
3064 3064
3065 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 3065 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
3066 DCHECK(ToRegister(instr->context()).is(cp)); 3066 DCHECK(ToRegister(instr->context()).is(cp));
3067 DCHECK(ToRegister(instr->global_object())
3068 .is(LoadDescriptor::ReceiverRegister()));
3069 DCHECK(ToRegister(instr->result()).Is(x0)); 3067 DCHECK(ToRegister(instr->result()).Is(x0));
3070 __ Mov(LoadDescriptor::NameRegister(), Operand(instr->name())); 3068
3071 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 3069 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
3072 Handle<Code> ic = 3070 Handle<Code> ic =
3073 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) 3071 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode())
3074 .code(); 3072 .code();
3075 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3073 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3076 } 3074 }
3077 3075
3078 3076
3079 MemOperand LCodeGen::PrepareKeyedExternalArrayOperand( 3077 MemOperand LCodeGen::PrepareKeyedExternalArrayOperand(
3080 Register key, 3078 Register key,
(...skipping 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after
5732 // Index is equal to negated out of object property index plus 1. 5730 // Index is equal to negated out of object property index plus 1.
5733 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5731 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5734 __ Ldr(result, FieldMemOperand(result, 5732 __ Ldr(result, FieldMemOperand(result,
5735 FixedArray::kHeaderSize - kPointerSize)); 5733 FixedArray::kHeaderSize - kPointerSize));
5736 __ Bind(deferred->exit()); 5734 __ Bind(deferred->exit());
5737 __ Bind(&done); 5735 __ Bind(&done);
5738 } 5736 }
5739 5737
5740 } // namespace internal 5738 } // namespace internal
5741 } // namespace v8 5739 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698