| 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 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 4004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4015 __ movp(rax, result_operand); | 4015 __ movp(rax, result_operand); |
| 4016 | 4016 |
| 4017 __ bind(&return_result); | 4017 __ bind(&return_result); |
| 4018 // Drop temp values from the stack, and restore context register. | 4018 // Drop temp values from the stack, and restore context register. |
| 4019 __ addp(rsp, Immediate(3 * kPointerSize)); | 4019 __ addp(rsp, Immediate(3 * kPointerSize)); |
| 4020 __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | 4020 __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
| 4021 context()->Plug(rax); | 4021 context()->Plug(rax); |
| 4022 } | 4022 } |
| 4023 | 4023 |
| 4024 | 4024 |
| 4025 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
| 4026 ASSERT(expr->arguments()->length() == 0); |
| 4027 ExternalReference debug_is_active = |
| 4028 ExternalReference::debug_is_active_address(isolate()); |
| 4029 __ Move(kScratchRegister, debug_is_active); |
| 4030 __ movzxbp(rax, Operand(kScratchRegister, 0)); |
| 4031 __ Integer32ToSmi(rax, rax); |
| 4032 context()->Plug(rax); |
| 4033 } |
| 4034 |
| 4035 |
| 4025 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4036 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
| 4026 if (expr->function() != NULL && | 4037 if (expr->function() != NULL && |
| 4027 expr->function()->intrinsic_type == Runtime::INLINE) { | 4038 expr->function()->intrinsic_type == Runtime::INLINE) { |
| 4028 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4039 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
| 4029 EmitInlineRuntimeCall(expr); | 4040 EmitInlineRuntimeCall(expr); |
| 4030 return; | 4041 return; |
| 4031 } | 4042 } |
| 4032 | 4043 |
| 4033 Comment cmnt(masm_, "[ CallRuntime"); | 4044 Comment cmnt(masm_, "[ CallRuntime"); |
| 4034 ZoneList<Expression*>* args = expr->arguments(); | 4045 ZoneList<Expression*>* args = expr->arguments(); |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4810 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4821 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4811 Assembler::target_address_at(call_target_address, | 4822 Assembler::target_address_at(call_target_address, |
| 4812 unoptimized_code)); | 4823 unoptimized_code)); |
| 4813 return OSR_AFTER_STACK_CHECK; | 4824 return OSR_AFTER_STACK_CHECK; |
| 4814 } | 4825 } |
| 4815 | 4826 |
| 4816 | 4827 |
| 4817 } } // namespace v8::internal | 4828 } } // namespace v8::internal |
| 4818 | 4829 |
| 4819 #endif // V8_TARGET_ARCH_X64 | 4830 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |