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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.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/s390/lithium-s390.cc ('k') | src/crankshaft/x64/lithium-x64.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 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
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 2541 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 2552 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
2553 __ Move(vector_register, vector); 2553 __ Move(vector_register, vector);
2554 FeedbackVectorSlot slot = instr->hydrogen()->slot(); 2554 FeedbackVectorSlot slot = instr->hydrogen()->slot();
2555 int index = vector->GetIndex(slot); 2555 int index = vector->GetIndex(slot);
2556 __ Move(slot_register, Smi::FromInt(index)); 2556 __ Move(slot_register, Smi::FromInt(index));
2557 } 2557 }
2558 2558
2559 2559
2560 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2560 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2561 DCHECK(ToRegister(instr->context()).is(rsi)); 2561 DCHECK(ToRegister(instr->context()).is(rsi));
2562 DCHECK(ToRegister(instr->global_object())
2563 .is(LoadDescriptor::ReceiverRegister()));
2564 DCHECK(ToRegister(instr->result()).is(rax)); 2562 DCHECK(ToRegister(instr->result()).is(rax));
2565 2563
2566 __ Move(LoadDescriptor::NameRegister(), instr->name());
2567 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 2564 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
2568 Handle<Code> ic = 2565 Handle<Code> ic =
2569 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) 2566 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode())
2570 .code(); 2567 .code();
2571 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2568 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2572 } 2569 }
2573 2570
2574 2571
2575 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2572 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2576 Register context = ToRegister(instr->context()); 2573 Register context = ToRegister(instr->context());
(...skipping 3012 matching lines...) Expand 10 before | Expand all | Expand 10 after
5589 __ bind(deferred->exit()); 5586 __ bind(deferred->exit());
5590 __ bind(&done); 5587 __ bind(&done);
5591 } 5588 }
5592 5589
5593 #undef __ 5590 #undef __
5594 5591
5595 } // namespace internal 5592 } // namespace internal
5596 } // namespace v8 5593 } // namespace v8
5597 5594
5598 #endif // V8_TARGET_ARCH_X64 5595 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-s390.cc ('k') | src/crankshaft/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698