OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |