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

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

Issue 1199983002: [strong] Implement strong property access semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add TODOs Created 5 years, 5 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 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after
2977 2977
2978 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2978 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2979 DCHECK(ToRegister(instr->context()).is(cp)); 2979 DCHECK(ToRegister(instr->context()).is(cp));
2980 DCHECK(ToRegister(instr->global_object()) 2980 DCHECK(ToRegister(instr->global_object())
2981 .is(LoadDescriptor::ReceiverRegister())); 2981 .is(LoadDescriptor::ReceiverRegister()));
2982 DCHECK(ToRegister(instr->result()).is(v0)); 2982 DCHECK(ToRegister(instr->result()).is(v0));
2983 2983
2984 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); 2984 __ li(LoadDescriptor::NameRegister(), Operand(instr->name()));
2985 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 2985 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
2986 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 2986 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
2987 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, 2987 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY,
2988 PREMONOMORPHIC).code(); 2988 PREMONOMORPHIC).code();
2989 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2989 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2990 } 2990 }
2991 2991
2992 2992
2993 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2993 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2994 Register context = ToRegister(instr->context()); 2994 Register context = ToRegister(instr->context());
2995 Register result = ToRegister(instr->result()); 2995 Register result = ToRegister(instr->result());
2996 2996
2997 __ ld(result, ContextOperand(context, instr->slot_index())); 2997 __ ld(result, ContextOperand(context, instr->slot_index()));
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
3092 3092
3093 3093
3094 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { 3094 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
3095 DCHECK(ToRegister(instr->context()).is(cp)); 3095 DCHECK(ToRegister(instr->context()).is(cp));
3096 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3096 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3097 DCHECK(ToRegister(instr->result()).is(v0)); 3097 DCHECK(ToRegister(instr->result()).is(v0));
3098 3098
3099 // Name is always in a2. 3099 // Name is always in a2.
3100 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); 3100 __ li(LoadDescriptor::NameRegister(), Operand(instr->name()));
3101 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); 3101 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
3102 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode( 3102 Handle<Code> ic =
3103 isolate(), NOT_CONTEXTUAL, 3103 CodeFactory::LoadICInOptimizedCode(
3104 instr->hydrogen()->initialization_state()).code(); 3104 isolate(), NOT_CONTEXTUAL, instr->hydrogen()->language_mode(),
3105 instr->hydrogen()->initialization_state()).code();
3105 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3106 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3106 } 3107 }
3107 3108
3108 3109
3109 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { 3110 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) {
3110 Register scratch = scratch0(); 3111 Register scratch = scratch0();
3111 Register function = ToRegister(instr->function()); 3112 Register function = ToRegister(instr->function());
3112 Register result = ToRegister(instr->result()); 3113 Register result = ToRegister(instr->result());
3113 3114
3114 // Get the prototype or initial map from the function. 3115 // Get the prototype or initial map from the function.
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
3461 3462
3462 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3463 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3463 DCHECK(ToRegister(instr->context()).is(cp)); 3464 DCHECK(ToRegister(instr->context()).is(cp));
3464 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3465 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3465 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3466 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3466 3467
3467 if (instr->hydrogen()->HasVectorAndSlot()) { 3468 if (instr->hydrogen()->HasVectorAndSlot()) {
3468 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3469 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3469 } 3470 }
3470 3471
3471 Handle<Code> ic = 3472 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode(
3472 CodeFactory::KeyedLoadICInOptimizedCode( 3473 isolate(), instr->hydrogen()->language_mode(),
3473 isolate(), instr->hydrogen()->initialization_state()).code(); 3474 instr->hydrogen()->initialization_state()).code();
3474 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3475 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3475 } 3476 }
3476 3477
3477 3478
3478 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3479 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3479 Register scratch = scratch0(); 3480 Register scratch = scratch0();
3480 Register temp = scratch1(); 3481 Register temp = scratch1();
3481 Register result = ToRegister(instr->result()); 3482 Register result = ToRegister(instr->result());
3482 3483
3483 if (instr->hydrogen()->from_inlined()) { 3484 if (instr->hydrogen()->from_inlined()) {
(...skipping 2723 matching lines...) Expand 10 before | Expand all | Expand 10 after
6207 __ Push(at, ToRegister(instr->function())); 6208 __ Push(at, ToRegister(instr->function()));
6208 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6209 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6209 RecordSafepoint(Safepoint::kNoLazyDeopt); 6210 RecordSafepoint(Safepoint::kNoLazyDeopt);
6210 } 6211 }
6211 6212
6212 6213
6213 #undef __ 6214 #undef __
6214 6215
6215 } // namespace internal 6216 } // namespace internal
6216 } // namespace v8 6217 } // 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