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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 4512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4523 DCHECK(expr->arguments()->length() == 0); | 4523 DCHECK(expr->arguments()->length() == 0); |
4524 ExternalReference debug_is_active = | 4524 ExternalReference debug_is_active = |
4525 ExternalReference::debug_is_active_address(isolate()); | 4525 ExternalReference::debug_is_active_address(isolate()); |
4526 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); | 4526 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); |
4527 __ SmiTag(eax); | 4527 __ SmiTag(eax); |
4528 context()->Plug(eax); | 4528 context()->Plug(eax); |
4529 } | 4529 } |
4530 | 4530 |
4531 | 4531 |
4532 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4532 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
4533 if (expr->function() != NULL && | 4533 InlineFunctionGenerator generator = FindInlineFunctionGenerator(expr); |
4534 expr->function()->intrinsic_type == Runtime::INLINE) { | 4534 if (generator != nullptr) { |
4535 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4535 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
4536 EmitInlineRuntimeCall(expr); | 4536 EmitInlineRuntimeCall(expr, generator); |
4537 return; | 4537 return; |
4538 } | 4538 } |
4539 | 4539 |
4540 Comment cmnt(masm_, "[ CallRuntime"); | 4540 Comment cmnt(masm_, "[ CallRuntime"); |
4541 ZoneList<Expression*>* args = expr->arguments(); | 4541 ZoneList<Expression*>* args = expr->arguments(); |
4542 | 4542 |
4543 if (expr->is_jsruntime()) { | 4543 if (expr->is_jsruntime()) { |
4544 // Push the builtins object as receiver. | 4544 // Push the builtins object as receiver. |
4545 __ mov(eax, GlobalObjectOperand()); | 4545 __ mov(eax, GlobalObjectOperand()); |
4546 __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset)); | 4546 __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset)); |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5385 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5385 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5386 Assembler::target_address_at(call_target_address, | 5386 Assembler::target_address_at(call_target_address, |
5387 unoptimized_code)); | 5387 unoptimized_code)); |
5388 return OSR_AFTER_STACK_CHECK; | 5388 return OSR_AFTER_STACK_CHECK; |
5389 } | 5389 } |
5390 | 5390 |
5391 | 5391 |
5392 } } // namespace v8::internal | 5392 } } // namespace v8::internal |
5393 | 5393 |
5394 #endif // V8_TARGET_ARCH_IA32 | 5394 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |