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

Side by Side Diff: src/mips/lithium-codegen-mips.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/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, 2869 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY,
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 = 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 scratch = scratch0(); 2978 Register scratch = scratch0();
2978 Register function = ToRegister(instr->function()); 2979 Register function = ToRegister(instr->function());
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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
3286 3287
3287 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3288 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3288 DCHECK(ToRegister(instr->context()).is(cp)); 3289 DCHECK(ToRegister(instr->context()).is(cp));
3289 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3290 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3290 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3291 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3291 3292
3292 if (instr->hydrogen()->HasVectorAndSlot()) { 3293 if (instr->hydrogen()->HasVectorAndSlot()) {
3293 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3294 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3294 } 3295 }
3295 3296
3296 Handle<Code> ic = 3297 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode(
3297 CodeFactory::KeyedLoadICInOptimizedCode( 3298 isolate(), instr->hydrogen()->language_mode(),
3298 isolate(), instr->hydrogen()->initialization_state()).code(); 3299 instr->hydrogen()->initialization_state()).code();
3299 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3300 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3300 } 3301 }
3301 3302
3302 3303
3303 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3304 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3304 Register scratch = scratch0(); 3305 Register scratch = scratch0();
3305 Register temp = scratch1(); 3306 Register temp = scratch1();
3306 Register result = ToRegister(instr->result()); 3307 Register result = ToRegister(instr->result());
3307 3308
3308 if (instr->hydrogen()->from_inlined()) { 3309 if (instr->hydrogen()->from_inlined()) {
(...skipping 2694 matching lines...) Expand 10 before | Expand all | Expand 10 after
6003 __ Push(at, ToRegister(instr->function())); 6004 __ Push(at, ToRegister(instr->function()));
6004 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6005 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6005 RecordSafepoint(Safepoint::kNoLazyDeopt); 6006 RecordSafepoint(Safepoint::kNoLazyDeopt);
6006 } 6007 }
6007 6008
6008 6009
6009 #undef __ 6010 #undef __
6010 6011
6011 } // namespace internal 6012 } // namespace internal
6012 } // namespace v8 6013 } // 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