OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
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 4572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4583 ExternalReference debug_is_active = | 4583 ExternalReference debug_is_active = |
4584 ExternalReference::debug_is_active_address(isolate()); | 4584 ExternalReference::debug_is_active_address(isolate()); |
4585 __ mov(ip, Operand(debug_is_active)); | 4585 __ mov(ip, Operand(debug_is_active)); |
4586 __ lbz(r3, MemOperand(ip)); | 4586 __ lbz(r3, MemOperand(ip)); |
4587 __ SmiTag(r3); | 4587 __ SmiTag(r3); |
4588 context()->Plug(r3); | 4588 context()->Plug(r3); |
4589 } | 4589 } |
4590 | 4590 |
4591 | 4591 |
4592 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4592 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
4593 if (expr->function() != NULL && | 4593 InlineFunctionGenerator generator = FindInlineFunctionGenerator(expr); |
4594 expr->function()->intrinsic_type == Runtime::INLINE) { | 4594 if (generator != nullptr) { |
4595 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4595 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
4596 EmitInlineRuntimeCall(expr); | 4596 EmitInlineRuntimeCall(expr, generator); |
4597 return; | 4597 return; |
4598 } | 4598 } |
4599 | 4599 |
4600 Comment cmnt(masm_, "[ CallRuntime"); | 4600 Comment cmnt(masm_, "[ CallRuntime"); |
4601 ZoneList<Expression*>* args = expr->arguments(); | 4601 ZoneList<Expression*>* args = expr->arguments(); |
4602 int arg_count = args->length(); | 4602 int arg_count = args->length(); |
4603 | 4603 |
4604 if (expr->is_jsruntime()) { | 4604 if (expr->is_jsruntime()) { |
4605 // Push the builtins object as the receiver. | 4605 // Push the builtins object as the receiver. |
4606 Register receiver = LoadDescriptor::ReceiverRegister(); | 4606 Register receiver = LoadDescriptor::ReceiverRegister(); |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5435 return ON_STACK_REPLACEMENT; | 5435 return ON_STACK_REPLACEMENT; |
5436 } | 5436 } |
5437 | 5437 |
5438 DCHECK(interrupt_address == | 5438 DCHECK(interrupt_address == |
5439 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5439 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5440 return OSR_AFTER_STACK_CHECK; | 5440 return OSR_AFTER_STACK_CHECK; |
5441 } | 5441 } |
5442 } | 5442 } |
5443 } // namespace v8::internal | 5443 } // namespace v8::internal |
5444 #endif // V8_TARGET_ARCH_PPC | 5444 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |