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 3294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3305 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3305 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3306 ZoneList<Expression*>* args = expr->arguments(); | 3306 ZoneList<Expression*>* args = expr->arguments(); |
3307 DCHECK_EQ(1, args->length()); | 3307 DCHECK_EQ(1, args->length()); |
3308 VisitForAccumulatorValue(args->at(0)); | 3308 VisitForAccumulatorValue(args->at(0)); |
3309 __ AssertFunction(r3); | 3309 __ AssertFunction(r3); |
3310 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); | 3310 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); |
3311 __ LoadP(r3, FieldMemOperand(r3, Map::kPrototypeOffset)); | 3311 __ LoadP(r3, FieldMemOperand(r3, Map::kPrototypeOffset)); |
3312 context()->Plug(r3); | 3312 context()->Plug(r3); |
3313 } | 3313 } |
3314 | 3314 |
| 3315 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) { |
| 3316 DCHECK_EQ(0, expr->arguments()->length()); |
| 3317 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, r3); |
| 3318 context()->Plug(r3); |
| 3319 } |
3315 | 3320 |
3316 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { | 3321 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
3317 DCHECK(expr->arguments()->length() == 0); | 3322 DCHECK(expr->arguments()->length() == 0); |
3318 ExternalReference debug_is_active = | 3323 ExternalReference debug_is_active = |
3319 ExternalReference::debug_is_active_address(isolate()); | 3324 ExternalReference::debug_is_active_address(isolate()); |
3320 __ mov(ip, Operand(debug_is_active)); | 3325 __ mov(ip, Operand(debug_is_active)); |
3321 __ lbz(r3, MemOperand(ip)); | 3326 __ lbz(r3, MemOperand(ip)); |
3322 __ SmiTag(r3); | 3327 __ SmiTag(r3); |
3323 context()->Plug(r3); | 3328 context()->Plug(r3); |
3324 } | 3329 } |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4091 | 4096 |
4092 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 4097 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
4093 | 4098 |
4094 DCHECK(interrupt_address == | 4099 DCHECK(interrupt_address == |
4095 isolate->builtins()->OnStackReplacement()->entry()); | 4100 isolate->builtins()->OnStackReplacement()->entry()); |
4096 return ON_STACK_REPLACEMENT; | 4101 return ON_STACK_REPLACEMENT; |
4097 } | 4102 } |
4098 } // namespace internal | 4103 } // namespace internal |
4099 } // namespace v8 | 4104 } // namespace v8 |
4100 #endif // V8_TARGET_ARCH_PPC | 4105 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |