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

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

Issue 1912633002: [ic] Split LoadIC into LoadGlobalIC and LoadIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing 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/x64/lithium-codegen-x64.cc ('k') | src/disassembler.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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 2691 matching lines...) Expand 10 before | Expand all | Expand 10 after
2702 2702
2703 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2703 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2704 DCHECK(ToRegister(instr->context()).is(esi)); 2704 DCHECK(ToRegister(instr->context()).is(esi));
2705 DCHECK(ToRegister(instr->global_object()) 2705 DCHECK(ToRegister(instr->global_object())
2706 .is(LoadDescriptor::ReceiverRegister())); 2706 .is(LoadDescriptor::ReceiverRegister()));
2707 DCHECK(ToRegister(instr->result()).is(eax)); 2707 DCHECK(ToRegister(instr->result()).is(eax));
2708 2708
2709 __ mov(LoadDescriptor::NameRegister(), instr->name()); 2709 __ mov(LoadDescriptor::NameRegister(), instr->name());
2710 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 2710 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
2711 Handle<Code> ic = 2711 Handle<Code> ic =
2712 CodeFactory::LoadICInOptimizedCode(isolate(), instr->typeof_mode()) 2712 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode())
2713 .code(); 2713 .code();
2714 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2714 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2715 } 2715 }
2716 2716
2717 2717
2718 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2718 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2719 Register context = ToRegister(instr->context()); 2719 Register context = ToRegister(instr->context());
2720 Register result = ToRegister(instr->result()); 2720 Register result = ToRegister(instr->result());
2721 __ mov(result, ContextOperand(context, instr->slot_index())); 2721 __ mov(result, ContextOperand(context, instr->slot_index()));
2722 2722
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
2812 } 2812 }
2813 2813
2814 2814
2815 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { 2815 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
2816 DCHECK(ToRegister(instr->context()).is(esi)); 2816 DCHECK(ToRegister(instr->context()).is(esi));
2817 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 2817 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
2818 DCHECK(ToRegister(instr->result()).is(eax)); 2818 DCHECK(ToRegister(instr->result()).is(eax));
2819 2819
2820 __ mov(LoadDescriptor::NameRegister(), instr->name()); 2820 __ mov(LoadDescriptor::NameRegister(), instr->name());
2821 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); 2821 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
2822 Handle<Code> ic = 2822 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate()).code();
2823 CodeFactory::LoadICInOptimizedCode(isolate(), NOT_INSIDE_TYPEOF).code();
2824 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2823 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2825 } 2824 }
2826 2825
2827 2826
2828 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { 2827 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) {
2829 Register function = ToRegister(instr->function()); 2828 Register function = ToRegister(instr->function());
2830 Register temp = ToRegister(instr->temp()); 2829 Register temp = ToRegister(instr->temp());
2831 Register result = ToRegister(instr->result()); 2830 Register result = ToRegister(instr->result());
2832 2831
2833 // Get the prototype or initial map from the function. 2832 // Get the prototype or initial map from the function.
(...skipping 3032 matching lines...) Expand 10 before | Expand all | Expand 10 after
5866 __ bind(deferred->exit()); 5865 __ bind(deferred->exit());
5867 __ bind(&done); 5866 __ bind(&done);
5868 } 5867 }
5869 5868
5870 #undef __ 5869 #undef __
5871 5870
5872 } // namespace internal 5871 } // namespace internal
5873 } // namespace v8 5872 } // namespace v8
5874 5873
5875 #endif // V8_TARGET_ARCH_X87 5874 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698