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

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

Issue 1189153002: 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/mips/full-codegen-mips.cc ('k') | src/mips64/code-stubs-mips64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2848 matching lines...) Expand 10 before | Expand all | Expand 10 after
2859 2859
2860 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2860 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2861 DCHECK(ToRegister(instr->context()).is(cp)); 2861 DCHECK(ToRegister(instr->context()).is(cp));
2862 DCHECK(ToRegister(instr->global_object()) 2862 DCHECK(ToRegister(instr->global_object())
2863 .is(LoadDescriptor::ReceiverRegister())); 2863 .is(LoadDescriptor::ReceiverRegister()));
2864 DCHECK(ToRegister(instr->result()).is(v0)); 2864 DCHECK(ToRegister(instr->result()).is(v0));
2865 2865
2866 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); 2866 __ li(LoadDescriptor::NameRegister(), Operand(instr->name()));
2867 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 2867 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
2868 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 2868 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
2869 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY, 2869 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode,
2870 PREMONOMORPHIC).code(); 2870 PREMONOMORPHIC).code();
2871 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2871 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2872 } 2872 }
2873 2873
2874 2874
2875 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2875 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2876 Register context = ToRegister(instr->context()); 2876 Register context = ToRegister(instr->context());
2877 Register result = ToRegister(instr->result()); 2877 Register result = ToRegister(instr->result());
2878 2878
2879 __ lw(result, ContextOperand(context, instr->slot_index())); 2879 __ lw(result, ContextOperand(context, instr->slot_index()));
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
2959 2959
2960 2960
2961 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { 2961 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
2962 DCHECK(ToRegister(instr->context()).is(cp)); 2962 DCHECK(ToRegister(instr->context()).is(cp));
2963 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 2963 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
2964 DCHECK(ToRegister(instr->result()).is(v0)); 2964 DCHECK(ToRegister(instr->result()).is(v0));
2965 2965
2966 // Name is always in a2. 2966 // Name is always in a2.
2967 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); 2967 __ li(LoadDescriptor::NameRegister(), Operand(instr->name()));
2968 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); 2968 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
2969 Handle<Code> ic = 2969 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(
2970 CodeFactory::LoadICInOptimizedCode( 2970 isolate(), NOT_CONTEXTUAL,
2971 isolate(), NOT_CONTEXTUAL, instr->hydrogen()->language_mode(), 2971 instr->hydrogen()->initialization_state()).code();
2972 instr->hydrogen()->initialization_state()).code();
2973 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2972 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2974 } 2973 }
2975 2974
2976 2975
2977 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { 2976 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) {
2978 Register scratch = scratch0(); 2977 Register scratch = scratch0();
2979 Register function = ToRegister(instr->function()); 2978 Register function = ToRegister(instr->function());
2980 Register result = ToRegister(instr->result()); 2979 Register result = ToRegister(instr->result());
2981 2980
2982 // Get the prototype or initial map from the function. 2981 // Get the prototype or initial map from the function.
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
3287 3286
3288 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3287 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3289 DCHECK(ToRegister(instr->context()).is(cp)); 3288 DCHECK(ToRegister(instr->context()).is(cp));
3290 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3289 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3291 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3290 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3292 3291
3293 if (instr->hydrogen()->HasVectorAndSlot()) { 3292 if (instr->hydrogen()->HasVectorAndSlot()) {
3294 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3293 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3295 } 3294 }
3296 3295
3297 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode( 3296 Handle<Code> ic =
3298 isolate(), instr->hydrogen()->language_mode(), 3297 CodeFactory::KeyedLoadICInOptimizedCode(
3299 instr->hydrogen()->initialization_state()).code(); 3298 isolate(), instr->hydrogen()->initialization_state()).code();
3300 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3299 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3301 } 3300 }
3302 3301
3303 3302
3304 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3303 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3305 Register scratch = scratch0(); 3304 Register scratch = scratch0();
3306 Register temp = scratch1(); 3305 Register temp = scratch1();
3307 Register result = ToRegister(instr->result()); 3306 Register result = ToRegister(instr->result());
3308 3307
3309 if (instr->hydrogen()->from_inlined()) { 3308 if (instr->hydrogen()->from_inlined()) {
(...skipping 2694 matching lines...) Expand 10 before | Expand all | Expand 10 after
6004 __ Push(at, ToRegister(instr->function())); 6003 __ Push(at, ToRegister(instr->function()));
6005 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6004 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6006 RecordSafepoint(Safepoint::kNoLazyDeopt); 6005 RecordSafepoint(Safepoint::kNoLazyDeopt);
6007 } 6006 }
6008 6007
6009 6008
6010 #undef __ 6009 #undef __
6011 6010
6012 } // namespace internal 6011 } // namespace internal
6013 } // namespace v8 6012 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698