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

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

Issue 1185343005: Revert of Revert of [strong] Implement strong mode restrictions on property access (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, 2839 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY,
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 = CodeFactory::LoadICInOptimizedCode( 2955 Handle<Code> ic =
2956 isolate(), NOT_CONTEXTUAL, 2956 CodeFactory::LoadICInOptimizedCode(
2957 instr->hydrogen()->initialization_state()).code(); 2957 isolate(), NOT_CONTEXTUAL, instr->hydrogen()->language_mode(),
2958 instr->hydrogen()->initialization_state()).code();
2958 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2959 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2959 } 2960 }
2960 2961
2961 2962
2962 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { 2963 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) {
2963 Register function = ToRegister(instr->function()); 2964 Register function = ToRegister(instr->function());
2964 Register temp = ToRegister(instr->temp()); 2965 Register temp = ToRegister(instr->temp());
2965 Register result = ToRegister(instr->result()); 2966 Register result = ToRegister(instr->result());
2966 2967
2967 // Get the prototype or initial map from the function. 2968 // Get the prototype or initial map from the function.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3189 3190
3190 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3191 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3191 DCHECK(ToRegister(instr->context()).is(esi)); 3192 DCHECK(ToRegister(instr->context()).is(esi));
3192 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3193 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3193 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3194 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3194 3195
3195 if (instr->hydrogen()->HasVectorAndSlot()) { 3196 if (instr->hydrogen()->HasVectorAndSlot()) {
3196 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3197 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3197 } 3198 }
3198 3199
3199 Handle<Code> ic = 3200 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode(
3200 CodeFactory::KeyedLoadICInOptimizedCode( 3201 isolate(), instr->hydrogen()->language_mode(),
3201 isolate(), instr->hydrogen()->initialization_state()).code(); 3202 instr->hydrogen()->initialization_state()).code();
3202 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3203 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3203 } 3204 }
3204 3205
3205 3206
3206 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3207 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3207 Register result = ToRegister(instr->result()); 3208 Register result = ToRegister(instr->result());
3208 3209
3209 if (instr->hydrogen()->from_inlined()) { 3210 if (instr->hydrogen()->from_inlined()) {
3210 __ lea(result, Operand(esp, -2 * kPointerSize)); 3211 __ lea(result, Operand(esp, -2 * kPointerSize));
3211 } else { 3212 } else {
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
5783 RecordSafepoint(Safepoint::kNoLazyDeopt); 5784 RecordSafepoint(Safepoint::kNoLazyDeopt);
5784 } 5785 }
5785 5786
5786 5787
5787 #undef __ 5788 #undef __
5788 5789
5789 } // namespace internal 5790 } // namespace internal
5790 } // namespace v8 5791 } // namespace v8
5791 5792
5792 #endif // V8_TARGET_ARCH_IA32 5793 #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