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

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

Issue 1199493002: Revert relanded strong property access CL (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/ia32/full-codegen-ia32.cc ('k') | src/ic/arm/handler-compiler-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 2818 matching lines...) Expand 10 before | Expand all | Expand 10 after
2829 2829
2830 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2830 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2831 DCHECK(ToRegister(instr->context()).is(esi)); 2831 DCHECK(ToRegister(instr->context()).is(esi));
2832 DCHECK(ToRegister(instr->global_object()) 2832 DCHECK(ToRegister(instr->global_object())
2833 .is(LoadDescriptor::ReceiverRegister())); 2833 .is(LoadDescriptor::ReceiverRegister()));
2834 DCHECK(ToRegister(instr->result()).is(eax)); 2834 DCHECK(ToRegister(instr->result()).is(eax));
2835 2835
2836 __ mov(LoadDescriptor::NameRegister(), instr->name()); 2836 __ mov(LoadDescriptor::NameRegister(), instr->name());
2837 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 2837 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
2838 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 2838 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
2839 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY, 2839 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode,
2840 PREMONOMORPHIC).code(); 2840 PREMONOMORPHIC).code();
2841 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2841 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2842 } 2842 }
2843 2843
2844 2844
2845 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2845 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2846 Register context = ToRegister(instr->context()); 2846 Register context = ToRegister(instr->context());
2847 Register result = ToRegister(instr->result()); 2847 Register result = ToRegister(instr->result());
2848 __ mov(result, ContextOperand(context, instr->slot_index())); 2848 __ mov(result, ContextOperand(context, instr->slot_index()));
2849 2849
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
2945 } 2945 }
2946 2946
2947 2947
2948 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { 2948 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
2949 DCHECK(ToRegister(instr->context()).is(esi)); 2949 DCHECK(ToRegister(instr->context()).is(esi));
2950 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 2950 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
2951 DCHECK(ToRegister(instr->result()).is(eax)); 2951 DCHECK(ToRegister(instr->result()).is(eax));
2952 2952
2953 __ mov(LoadDescriptor::NameRegister(), instr->name()); 2953 __ mov(LoadDescriptor::NameRegister(), instr->name());
2954 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); 2954 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
2955 Handle<Code> ic = 2955 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(
2956 CodeFactory::LoadICInOptimizedCode( 2956 isolate(), NOT_CONTEXTUAL,
2957 isolate(), NOT_CONTEXTUAL, instr->hydrogen()->language_mode(), 2957 instr->hydrogen()->initialization_state()).code();
2958 instr->hydrogen()->initialization_state()).code();
2959 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2958 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2960 } 2959 }
2961 2960
2962 2961
2963 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { 2962 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) {
2964 Register function = ToRegister(instr->function()); 2963 Register function = ToRegister(instr->function());
2965 Register temp = ToRegister(instr->temp()); 2964 Register temp = ToRegister(instr->temp());
2966 Register result = ToRegister(instr->result()); 2965 Register result = ToRegister(instr->result());
2967 2966
2968 // Get the prototype or initial map from the function. 2967 // Get the prototype or initial map from the function.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3190 3189
3191 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3190 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3192 DCHECK(ToRegister(instr->context()).is(esi)); 3191 DCHECK(ToRegister(instr->context()).is(esi));
3193 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3192 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3194 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3193 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3195 3194
3196 if (instr->hydrogen()->HasVectorAndSlot()) { 3195 if (instr->hydrogen()->HasVectorAndSlot()) {
3197 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3196 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3198 } 3197 }
3199 3198
3200 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode( 3199 Handle<Code> ic =
3201 isolate(), instr->hydrogen()->language_mode(), 3200 CodeFactory::KeyedLoadICInOptimizedCode(
3202 instr->hydrogen()->initialization_state()).code(); 3201 isolate(), instr->hydrogen()->initialization_state()).code();
3203 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3202 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3204 } 3203 }
3205 3204
3206 3205
3207 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3206 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3208 Register result = ToRegister(instr->result()); 3207 Register result = ToRegister(instr->result());
3209 3208
3210 if (instr->hydrogen()->from_inlined()) { 3209 if (instr->hydrogen()->from_inlined()) {
3211 __ lea(result, Operand(esp, -2 * kPointerSize)); 3210 __ lea(result, Operand(esp, -2 * kPointerSize));
3212 } else { 3211 } else {
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
5784 RecordSafepoint(Safepoint::kNoLazyDeopt); 5783 RecordSafepoint(Safepoint::kNoLazyDeopt);
5785 } 5784 }
5786 5785
5787 5786
5788 #undef __ 5787 #undef __
5789 5788
5790 } // namespace internal 5789 } // namespace internal
5791 } // namespace v8 5790 } // namespace v8
5792 5791
5793 #endif // V8_TARGET_ARCH_IA32 5792 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698