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-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4547 ExternalReference debug_is_active = | 4547 ExternalReference debug_is_active = |
4548 ExternalReference::debug_is_active_address(isolate()); | 4548 ExternalReference::debug_is_active_address(isolate()); |
4549 __ Move(kScratchRegister, debug_is_active); | 4549 __ Move(kScratchRegister, debug_is_active); |
4550 __ movzxbp(rax, Operand(kScratchRegister, 0)); | 4550 __ movzxbp(rax, Operand(kScratchRegister, 0)); |
4551 __ Integer32ToSmi(rax, rax); | 4551 __ Integer32ToSmi(rax, rax); |
4552 context()->Plug(rax); | 4552 context()->Plug(rax); |
4553 } | 4553 } |
4554 | 4554 |
4555 | 4555 |
4556 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4556 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
4557 if (expr->function() != NULL && | 4557 InlineFunctionGenerator generator = FindInlineFunctionGenerator(expr); |
4558 expr->function()->intrinsic_type == Runtime::INLINE) { | 4558 if (generator != nullptr) { |
4559 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4559 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
4560 EmitInlineRuntimeCall(expr); | 4560 EmitInlineRuntimeCall(expr, generator); |
4561 return; | 4561 return; |
4562 } | 4562 } |
4563 | 4563 |
4564 Comment cmnt(masm_, "[ CallRuntime"); | 4564 Comment cmnt(masm_, "[ CallRuntime"); |
4565 ZoneList<Expression*>* args = expr->arguments(); | 4565 ZoneList<Expression*>* args = expr->arguments(); |
4566 int arg_count = args->length(); | 4566 int arg_count = args->length(); |
4567 | 4567 |
4568 if (expr->is_jsruntime()) { | 4568 if (expr->is_jsruntime()) { |
4569 // Push the builtins object as receiver. | 4569 // Push the builtins object as receiver. |
4570 __ movp(rax, GlobalObjectOperand()); | 4570 __ movp(rax, GlobalObjectOperand()); |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5406 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5406 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5407 Assembler::target_address_at(call_target_address, | 5407 Assembler::target_address_at(call_target_address, |
5408 unoptimized_code)); | 5408 unoptimized_code)); |
5409 return OSR_AFTER_STACK_CHECK; | 5409 return OSR_AFTER_STACK_CHECK; |
5410 } | 5410 } |
5411 | 5411 |
5412 | 5412 |
5413 } } // namespace v8::internal | 5413 } } // namespace v8::internal |
5414 | 5414 |
5415 #endif // V8_TARGET_ARCH_X64 | 5415 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |