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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 1199983002: [strong] Implement strong property access semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add TODOs Created 5 years, 5 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/ia32/full-codegen-ia32.cc ('k') | src/ic/arm/ic-arm.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
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 2832 matching lines...) Expand 10 before | Expand all | Expand 10 after
2843 2843
2844 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2844 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2845 DCHECK(ToRegister(instr->context()).is(esi)); 2845 DCHECK(ToRegister(instr->context()).is(esi));
2846 DCHECK(ToRegister(instr->global_object()) 2846 DCHECK(ToRegister(instr->global_object())
2847 .is(LoadDescriptor::ReceiverRegister())); 2847 .is(LoadDescriptor::ReceiverRegister()));
2848 DCHECK(ToRegister(instr->result()).is(eax)); 2848 DCHECK(ToRegister(instr->result()).is(eax));
2849 2849
2850 __ mov(LoadDescriptor::NameRegister(), instr->name()); 2850 __ mov(LoadDescriptor::NameRegister(), instr->name());
2851 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 2851 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
2852 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 2852 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
2853 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, 2853 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY,
2854 PREMONOMORPHIC).code(); 2854 PREMONOMORPHIC).code();
2855 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2855 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2856 } 2856 }
2857 2857
2858 2858
2859 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2859 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2860 Register context = ToRegister(instr->context()); 2860 Register context = ToRegister(instr->context());
2861 Register result = ToRegister(instr->result()); 2861 Register result = ToRegister(instr->result());
2862 __ mov(result, ContextOperand(context, instr->slot_index())); 2862 __ mov(result, ContextOperand(context, instr->slot_index()));
2863 2863
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
2959 } 2959 }
2960 2960
2961 2961
2962 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { 2962 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
2963 DCHECK(ToRegister(instr->context()).is(esi)); 2963 DCHECK(ToRegister(instr->context()).is(esi));
2964 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 2964 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
2965 DCHECK(ToRegister(instr->result()).is(eax)); 2965 DCHECK(ToRegister(instr->result()).is(eax));
2966 2966
2967 __ mov(LoadDescriptor::NameRegister(), instr->name()); 2967 __ mov(LoadDescriptor::NameRegister(), instr->name());
2968 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); 2968 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
2969 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode( 2969 Handle<Code> ic =
2970 isolate(), NOT_CONTEXTUAL, 2970 CodeFactory::LoadICInOptimizedCode(
2971 instr->hydrogen()->initialization_state()).code(); 2971 isolate(), NOT_CONTEXTUAL, instr->hydrogen()->language_mode(),
2972 instr->hydrogen()->initialization_state()).code();
2972 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2973 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2973 } 2974 }
2974 2975
2975 2976
2976 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { 2977 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) {
2977 Register function = ToRegister(instr->function()); 2978 Register function = ToRegister(instr->function());
2978 Register temp = ToRegister(instr->temp()); 2979 Register temp = ToRegister(instr->temp());
2979 Register result = ToRegister(instr->result()); 2980 Register result = ToRegister(instr->result());
2980 2981
2981 // Get the prototype or initial map from the function. 2982 // Get the prototype or initial map from the function.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3203 3204
3204 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3205 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3205 DCHECK(ToRegister(instr->context()).is(esi)); 3206 DCHECK(ToRegister(instr->context()).is(esi));
3206 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3207 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3207 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3208 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3208 3209
3209 if (instr->hydrogen()->HasVectorAndSlot()) { 3210 if (instr->hydrogen()->HasVectorAndSlot()) {
3210 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3211 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3211 } 3212 }
3212 3213
3213 Handle<Code> ic = 3214 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode(
3214 CodeFactory::KeyedLoadICInOptimizedCode( 3215 isolate(), instr->hydrogen()->language_mode(),
3215 isolate(), instr->hydrogen()->initialization_state()).code(); 3216 instr->hydrogen()->initialization_state()).code();
3216 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3217 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3217 } 3218 }
3218 3219
3219 3220
3220 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3221 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3221 Register result = ToRegister(instr->result()); 3222 Register result = ToRegister(instr->result());
3222 3223
3223 if (instr->hydrogen()->from_inlined()) { 3224 if (instr->hydrogen()->from_inlined()) {
3224 __ lea(result, Operand(esp, -2 * kPointerSize)); 3225 __ lea(result, Operand(esp, -2 * kPointerSize));
3225 } else { 3226 } else {
(...skipping 2579 matching lines...) Expand 10 before | Expand all | Expand 10 after
5805 RecordSafepoint(Safepoint::kNoLazyDeopt); 5806 RecordSafepoint(Safepoint::kNoLazyDeopt);
5806 } 5807 }
5807 5808
5808 5809
5809 #undef __ 5810 #undef __
5810 5811
5811 } // namespace internal 5812 } // namespace internal
5812 } // namespace v8 5813 } // namespace v8
5813 5814
5814 #endif // V8_TARGET_ARCH_IA32 5815 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ic/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698