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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 2191663004: [fullcode][mips][mips64][ppc][s390] Avoid trashing of a home object when doing a count operation wi… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3173 matching lines...) Expand 10 before | Expand all | Expand 10 after
3184 VisitForStackValue(prop->obj()); 3184 VisitForStackValue(prop->obj());
3185 __ LoadP(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); 3185 __ LoadP(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0));
3186 EmitNamedPropertyLoad(prop); 3186 EmitNamedPropertyLoad(prop);
3187 break; 3187 break;
3188 } 3188 }
3189 3189
3190 case NAMED_SUPER_PROPERTY: { 3190 case NAMED_SUPER_PROPERTY: {
3191 VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var()); 3191 VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var());
3192 VisitForAccumulatorValue( 3192 VisitForAccumulatorValue(
3193 prop->obj()->AsSuperPropertyReference()->home_object()); 3193 prop->obj()->AsSuperPropertyReference()->home_object());
3194 PushOperand(result_register());
3195 const Register scratch = r4; 3194 const Register scratch = r4;
3196 __ LoadP(scratch, MemOperand(sp, kPointerSize)); 3195 __ LoadP(scratch, MemOperand(sp, 0)); // this
3197 PushOperands(scratch, result_register()); 3196 PushOperands(result_register(), scratch, result_register());
3198 EmitNamedSuperPropertyLoad(prop); 3197 EmitNamedSuperPropertyLoad(prop);
3199 break; 3198 break;
3200 } 3199 }
3201 3200
3202 case KEYED_SUPER_PROPERTY: { 3201 case KEYED_SUPER_PROPERTY: {
3203 VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var()); 3202 VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var());
3204 VisitForAccumulatorValue( 3203 VisitForStackValue(
3205 prop->obj()->AsSuperPropertyReference()->home_object()); 3204 prop->obj()->AsSuperPropertyReference()->home_object());
3206 const Register scratch = r4;
3207 const Register scratch1 = r5;
3208 __ mr(scratch, result_register());
3209 VisitForAccumulatorValue(prop->key()); 3205 VisitForAccumulatorValue(prop->key());
3210 PushOperands(scratch, result_register()); 3206 const Register scratch1 = r4;
3211 __ LoadP(scratch1, MemOperand(sp, 2 * kPointerSize)); 3207 const Register scratch2 = r5;
3212 PushOperands(scratch1, scratch, result_register()); 3208 __ LoadP(scratch1, MemOperand(sp, 1 * kPointerSize)); // this
3209 __ LoadP(scratch2, MemOperand(sp, 0 * kPointerSize)); // home object
3210 PushOperands(result_register(), scratch1, scratch2, result_register());
3213 EmitKeyedSuperPropertyLoad(prop); 3211 EmitKeyedSuperPropertyLoad(prop);
3214 break; 3212 break;
3215 } 3213 }
3216 3214
3217 case KEYED_PROPERTY: { 3215 case KEYED_PROPERTY: {
3218 VisitForStackValue(prop->obj()); 3216 VisitForStackValue(prop->obj());
3219 VisitForStackValue(prop->key()); 3217 VisitForStackValue(prop->key());
3220 __ LoadP(LoadDescriptor::ReceiverRegister(), 3218 __ LoadP(LoadDescriptor::ReceiverRegister(),
3221 MemOperand(sp, 1 * kPointerSize)); 3219 MemOperand(sp, 1 * kPointerSize));
3222 __ LoadP(LoadDescriptor::NameRegister(), MemOperand(sp, 0)); 3220 __ LoadP(LoadDescriptor::NameRegister(), MemOperand(sp, 0));
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
3767 3765
3768 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3766 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3769 3767
3770 DCHECK(interrupt_address == 3768 DCHECK(interrupt_address ==
3771 isolate->builtins()->OnStackReplacement()->entry()); 3769 isolate->builtins()->OnStackReplacement()->entry());
3772 return ON_STACK_REPLACEMENT; 3770 return ON_STACK_REPLACEMENT;
3773 } 3771 }
3774 } // namespace internal 3772 } // namespace internal
3775 } // namespace v8 3773 } // namespace v8
3776 #endif // V8_TARGET_ARCH_PPC 3774 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698