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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 3971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3982 __ bind(&done); | 3982 __ bind(&done); |
3983 __ mov(eax, result_operand); | 3983 __ mov(eax, result_operand); |
3984 // Drop temp values from the stack, and restore context register. | 3984 // Drop temp values from the stack, and restore context register. |
3985 __ add(esp, Immediate(3 * kPointerSize)); | 3985 __ add(esp, Immediate(3 * kPointerSize)); |
3986 | 3986 |
3987 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 3987 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
3988 context()->Plug(eax); | 3988 context()->Plug(eax); |
3989 } | 3989 } |
3990 | 3990 |
3991 | 3991 |
| 3992 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
| 3993 ASSERT(expr->arguments()->length() == 0); |
| 3994 ExternalReference debug_is_active = |
| 3995 ExternalReference::debug_is_active_address(isolate()); |
| 3996 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); |
| 3997 __ SmiTag(eax); |
| 3998 context()->Plug(eax); |
| 3999 } |
| 4000 |
| 4001 |
3992 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4002 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
3993 if (expr->function() != NULL && | 4003 if (expr->function() != NULL && |
3994 expr->function()->intrinsic_type == Runtime::INLINE) { | 4004 expr->function()->intrinsic_type == Runtime::INLINE) { |
3995 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4005 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
3996 EmitInlineRuntimeCall(expr); | 4006 EmitInlineRuntimeCall(expr); |
3997 return; | 4007 return; |
3998 } | 4008 } |
3999 | 4009 |
4000 Comment cmnt(masm_, "[ CallRuntime"); | 4010 Comment cmnt(masm_, "[ CallRuntime"); |
4001 ZoneList<Expression*>* args = expr->arguments(); | 4011 ZoneList<Expression*>* args = expr->arguments(); |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4782 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4792 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4783 Assembler::target_address_at(call_target_address, | 4793 Assembler::target_address_at(call_target_address, |
4784 unoptimized_code)); | 4794 unoptimized_code)); |
4785 return OSR_AFTER_STACK_CHECK; | 4795 return OSR_AFTER_STACK_CHECK; |
4786 } | 4796 } |
4787 | 4797 |
4788 | 4798 |
4789 } } // namespace v8::internal | 4799 } } // namespace v8::internal |
4790 | 4800 |
4791 #endif // V8_TARGET_ARCH_X87 | 4801 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |