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 3099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3110 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3110 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3111 ZoneList<Expression*>* args = expr->arguments(); | 3111 ZoneList<Expression*>* args = expr->arguments(); |
3112 DCHECK_EQ(1, args->length()); | 3112 DCHECK_EQ(1, args->length()); |
3113 VisitForAccumulatorValue(args->at(0)); | 3113 VisitForAccumulatorValue(args->at(0)); |
3114 __ AssertFunction(r3); | 3114 __ AssertFunction(r3); |
3115 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); | 3115 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); |
3116 __ LoadP(r3, FieldMemOperand(r3, Map::kPrototypeOffset)); | 3116 __ LoadP(r3, FieldMemOperand(r3, Map::kPrototypeOffset)); |
3117 context()->Plug(r3); | 3117 context()->Plug(r3); |
3118 } | 3118 } |
3119 | 3119 |
3120 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) { | |
3121 DCHECK_EQ(0, expr->arguments()->length()); | |
3122 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, r3); | |
3123 context()->Plug(r3); | |
3124 } | |
3125 | |
3126 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { | 3120 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
3127 DCHECK(expr->arguments()->length() == 0); | 3121 DCHECK(expr->arguments()->length() == 0); |
3128 ExternalReference debug_is_active = | 3122 ExternalReference debug_is_active = |
3129 ExternalReference::debug_is_active_address(isolate()); | 3123 ExternalReference::debug_is_active_address(isolate()); |
3130 __ mov(ip, Operand(debug_is_active)); | 3124 __ mov(ip, Operand(debug_is_active)); |
3131 __ lbz(r3, MemOperand(ip)); | 3125 __ lbz(r3, MemOperand(ip)); |
3132 __ SmiTag(r3); | 3126 __ SmiTag(r3); |
3133 context()->Plug(r3); | 3127 context()->Plug(r3); |
3134 } | 3128 } |
3135 | 3129 |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3900 | 3894 |
3901 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3895 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
3902 | 3896 |
3903 DCHECK(interrupt_address == | 3897 DCHECK(interrupt_address == |
3904 isolate->builtins()->OnStackReplacement()->entry()); | 3898 isolate->builtins()->OnStackReplacement()->entry()); |
3905 return ON_STACK_REPLACEMENT; | 3899 return ON_STACK_REPLACEMENT; |
3906 } | 3900 } |
3907 } // namespace internal | 3901 } // namespace internal |
3908 } // namespace v8 | 3902 } // namespace v8 |
3909 #endif // V8_TARGET_ARCH_PPC | 3903 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |