OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 3112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3123 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3123 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3124 ZoneList<Expression*>* args = expr->arguments(); | 3124 ZoneList<Expression*>* args = expr->arguments(); |
3125 DCHECK_EQ(1, args->length()); | 3125 DCHECK_EQ(1, args->length()); |
3126 VisitForAccumulatorValue(args->at(0)); | 3126 VisitForAccumulatorValue(args->at(0)); |
3127 __ AssertFunction(r0); | 3127 __ AssertFunction(r0); |
3128 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); | 3128 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); |
3129 __ ldr(r0, FieldMemOperand(r0, Map::kPrototypeOffset)); | 3129 __ ldr(r0, FieldMemOperand(r0, Map::kPrototypeOffset)); |
3130 context()->Plug(r0); | 3130 context()->Plug(r0); |
3131 } | 3131 } |
3132 | 3132 |
3133 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) { | |
3134 DCHECK_EQ(0, expr->arguments()->length()); | |
3135 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, r0); | |
3136 context()->Plug(r0); | |
3137 } | |
3138 | |
3139 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { | 3133 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
3140 DCHECK(expr->arguments()->length() == 0); | 3134 DCHECK(expr->arguments()->length() == 0); |
3141 ExternalReference debug_is_active = | 3135 ExternalReference debug_is_active = |
3142 ExternalReference::debug_is_active_address(isolate()); | 3136 ExternalReference::debug_is_active_address(isolate()); |
3143 __ mov(ip, Operand(debug_is_active)); | 3137 __ mov(ip, Operand(debug_is_active)); |
3144 __ ldrb(r0, MemOperand(ip)); | 3138 __ ldrb(r0, MemOperand(ip)); |
3145 __ SmiTag(r0); | 3139 __ SmiTag(r0); |
3146 context()->Plug(r0); | 3140 context()->Plug(r0); |
3147 } | 3141 } |
3148 | 3142 |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3990 DCHECK(interrupt_address == | 3984 DCHECK(interrupt_address == |
3991 isolate->builtins()->OnStackReplacement()->entry()); | 3985 isolate->builtins()->OnStackReplacement()->entry()); |
3992 return ON_STACK_REPLACEMENT; | 3986 return ON_STACK_REPLACEMENT; |
3993 } | 3987 } |
3994 | 3988 |
3995 | 3989 |
3996 } // namespace internal | 3990 } // namespace internal |
3997 } // namespace v8 | 3991 } // namespace v8 |
3998 | 3992 |
3999 #endif // V8_TARGET_ARCH_ARM | 3993 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |