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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 4010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4021 ASSERT(result.is(r0)); | 4021 ASSERT(result.is(r0)); |
4022 __ b(&done); | 4022 __ b(&done); |
4023 | 4023 |
4024 __ bind(&bailout); | 4024 __ bind(&bailout); |
4025 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); | 4025 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
4026 __ bind(&done); | 4026 __ bind(&done); |
4027 context()->Plug(r0); | 4027 context()->Plug(r0); |
4028 } | 4028 } |
4029 | 4029 |
4030 | 4030 |
| 4031 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
| 4032 ASSERT(expr->arguments()->length() == 0); |
| 4033 ExternalReference debug_is_active = |
| 4034 ExternalReference::debug_is_active_address(isolate()); |
| 4035 __ mov(ip, Operand(debug_is_active)); |
| 4036 __ ldrb(r0, MemOperand(ip)); |
| 4037 __ SmiTag(r0); |
| 4038 context()->Plug(r0); |
| 4039 } |
| 4040 |
| 4041 |
4031 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4042 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
4032 if (expr->function() != NULL && | 4043 if (expr->function() != NULL && |
4033 expr->function()->intrinsic_type == Runtime::INLINE) { | 4044 expr->function()->intrinsic_type == Runtime::INLINE) { |
4034 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4045 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
4035 EmitInlineRuntimeCall(expr); | 4046 EmitInlineRuntimeCall(expr); |
4036 return; | 4047 return; |
4037 } | 4048 } |
4038 | 4049 |
4039 Comment cmnt(masm_, "[ CallRuntime"); | 4050 Comment cmnt(masm_, "[ CallRuntime"); |
4040 ZoneList<Expression*>* args = expr->arguments(); | 4051 ZoneList<Expression*>* args = expr->arguments(); |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4831 | 4842 |
4832 ASSERT(interrupt_address == | 4843 ASSERT(interrupt_address == |
4833 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4844 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4834 return OSR_AFTER_STACK_CHECK; | 4845 return OSR_AFTER_STACK_CHECK; |
4835 } | 4846 } |
4836 | 4847 |
4837 | 4848 |
4838 } } // namespace v8::internal | 4849 } } // namespace v8::internal |
4839 | 4850 |
4840 #endif // V8_TARGET_ARCH_ARM | 4851 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |