OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 3019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3030 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3030 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3031 ZoneList<Expression*>* args = expr->arguments(); | 3031 ZoneList<Expression*>* args = expr->arguments(); |
3032 DCHECK_EQ(1, args->length()); | 3032 DCHECK_EQ(1, args->length()); |
3033 VisitForAccumulatorValue(args->at(0)); | 3033 VisitForAccumulatorValue(args->at(0)); |
3034 __ AssertFunction(r2); | 3034 __ AssertFunction(r2); |
3035 __ LoadP(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); | 3035 __ LoadP(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); |
3036 __ LoadP(r2, FieldMemOperand(r2, Map::kPrototypeOffset)); | 3036 __ LoadP(r2, FieldMemOperand(r2, Map::kPrototypeOffset)); |
3037 context()->Plug(r2); | 3037 context()->Plug(r2); |
3038 } | 3038 } |
3039 | 3039 |
3040 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) { | |
3041 DCHECK_EQ(0, expr->arguments()->length()); | |
3042 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, r2); | |
3043 context()->Plug(r2); | |
3044 } | |
3045 | |
3046 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { | 3040 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
3047 DCHECK(expr->arguments()->length() == 0); | 3041 DCHECK(expr->arguments()->length() == 0); |
3048 ExternalReference debug_is_active = | 3042 ExternalReference debug_is_active = |
3049 ExternalReference::debug_is_active_address(isolate()); | 3043 ExternalReference::debug_is_active_address(isolate()); |
3050 __ mov(ip, Operand(debug_is_active)); | 3044 __ mov(ip, Operand(debug_is_active)); |
3051 __ LoadlB(r2, MemOperand(ip)); | 3045 __ LoadlB(r2, MemOperand(ip)); |
3052 __ SmiTag(r2); | 3046 __ SmiTag(r2); |
3053 context()->Plug(r2); | 3047 context()->Plug(r2); |
3054 } | 3048 } |
3055 | 3049 |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3808 DCHECK(kOSRBranchInstruction == br_instr); | 3802 DCHECK(kOSRBranchInstruction == br_instr); |
3809 | 3803 |
3810 DCHECK(interrupt_address == | 3804 DCHECK(interrupt_address == |
3811 isolate->builtins()->OnStackReplacement()->entry()); | 3805 isolate->builtins()->OnStackReplacement()->entry()); |
3812 return ON_STACK_REPLACEMENT; | 3806 return ON_STACK_REPLACEMENT; |
3813 } | 3807 } |
3814 | 3808 |
3815 } // namespace internal | 3809 } // namespace internal |
3816 } // namespace v8 | 3810 } // namespace v8 |
3817 #endif // V8_TARGET_ARCH_S390 | 3811 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |