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

Side by Side Diff: src/mips64/lithium-codegen-mips64.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/mips64/full-codegen-mips64.cc ('k') | src/objects.h » ('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 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 2952 matching lines...) Expand 10 before | Expand all | Expand 10 after
2963 2963
2964 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2964 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2965 DCHECK(ToRegister(instr->context()).is(cp)); 2965 DCHECK(ToRegister(instr->context()).is(cp));
2966 DCHECK(ToRegister(instr->global_object()) 2966 DCHECK(ToRegister(instr->global_object())
2967 .is(LoadDescriptor::ReceiverRegister())); 2967 .is(LoadDescriptor::ReceiverRegister()));
2968 DCHECK(ToRegister(instr->result()).is(v0)); 2968 DCHECK(ToRegister(instr->result()).is(v0));
2969 2969
2970 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); 2970 __ li(LoadDescriptor::NameRegister(), Operand(instr->name()));
2971 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 2971 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
2972 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 2972 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
2973 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY, 2973 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode,
2974 PREMONOMORPHIC).code(); 2974 PREMONOMORPHIC).code();
2975 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2975 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2976 } 2976 }
2977 2977
2978 2978
2979 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2979 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2980 Register context = ToRegister(instr->context()); 2980 Register context = ToRegister(instr->context());
2981 Register result = ToRegister(instr->result()); 2981 Register result = ToRegister(instr->result());
2982 2982
2983 __ ld(result, ContextOperand(context, instr->slot_index())); 2983 __ ld(result, ContextOperand(context, instr->slot_index()));
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
3078 3078
3079 3079
3080 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { 3080 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
3081 DCHECK(ToRegister(instr->context()).is(cp)); 3081 DCHECK(ToRegister(instr->context()).is(cp));
3082 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3082 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3083 DCHECK(ToRegister(instr->result()).is(v0)); 3083 DCHECK(ToRegister(instr->result()).is(v0));
3084 3084
3085 // Name is always in a2. 3085 // Name is always in a2.
3086 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); 3086 __ li(LoadDescriptor::NameRegister(), Operand(instr->name()));
3087 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); 3087 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
3088 Handle<Code> ic = 3088 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(
3089 CodeFactory::LoadICInOptimizedCode( 3089 isolate(), NOT_CONTEXTUAL,
3090 isolate(), NOT_CONTEXTUAL, instr->hydrogen()->language_mode(), 3090 instr->hydrogen()->initialization_state()).code();
3091 instr->hydrogen()->initialization_state()).code();
3092 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3091 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3093 } 3092 }
3094 3093
3095 3094
3096 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { 3095 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) {
3097 Register scratch = scratch0(); 3096 Register scratch = scratch0();
3098 Register function = ToRegister(instr->function()); 3097 Register function = ToRegister(instr->function());
3099 Register result = ToRegister(instr->result()); 3098 Register result = ToRegister(instr->result());
3100 3099
3101 // Get the prototype or initial map from the function. 3100 // Get the prototype or initial map from the function.
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
3448 3447
3449 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3448 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3450 DCHECK(ToRegister(instr->context()).is(cp)); 3449 DCHECK(ToRegister(instr->context()).is(cp));
3451 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3450 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3452 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3451 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3453 3452
3454 if (instr->hydrogen()->HasVectorAndSlot()) { 3453 if (instr->hydrogen()->HasVectorAndSlot()) {
3455 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3454 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3456 } 3455 }
3457 3456
3458 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode( 3457 Handle<Code> ic =
3459 isolate(), instr->hydrogen()->language_mode(), 3458 CodeFactory::KeyedLoadICInOptimizedCode(
3460 instr->hydrogen()->initialization_state()).code(); 3459 isolate(), instr->hydrogen()->initialization_state()).code();
3461 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3460 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3462 } 3461 }
3463 3462
3464 3463
3465 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3464 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3466 Register scratch = scratch0(); 3465 Register scratch = scratch0();
3467 Register temp = scratch1(); 3466 Register temp = scratch1();
3468 Register result = ToRegister(instr->result()); 3467 Register result = ToRegister(instr->result());
3469 3468
3470 if (instr->hydrogen()->from_inlined()) { 3469 if (instr->hydrogen()->from_inlined()) {
(...skipping 2715 matching lines...) Expand 10 before | Expand all | Expand 10 after
6186 __ Push(at, ToRegister(instr->function())); 6185 __ Push(at, ToRegister(instr->function()));
6187 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6186 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6188 RecordSafepoint(Safepoint::kNoLazyDeopt); 6187 RecordSafepoint(Safepoint::kNoLazyDeopt);
6189 } 6188 }
6190 6189
6191 6190
6192 #undef __ 6191 #undef __
6193 6192
6194 } // namespace internal 6193 } // namespace internal
6195 } // namespace v8 6194 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698