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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 4595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4606 ExternalReference debug_is_active = | 4606 ExternalReference debug_is_active = |
4607 ExternalReference::debug_is_active_address(isolate()); | 4607 ExternalReference::debug_is_active_address(isolate()); |
4608 __ li(at, Operand(debug_is_active)); | 4608 __ li(at, Operand(debug_is_active)); |
4609 __ lb(v0, MemOperand(at)); | 4609 __ lb(v0, MemOperand(at)); |
4610 __ SmiTag(v0); | 4610 __ SmiTag(v0); |
4611 context()->Plug(v0); | 4611 context()->Plug(v0); |
4612 } | 4612 } |
4613 | 4613 |
4614 | 4614 |
4615 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4615 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
4616 if (expr->function() != NULL && | 4616 InlineFunctionGenerator generator = FindInlineFunctionGenerator(expr); |
4617 expr->function()->intrinsic_type == Runtime::INLINE) { | 4617 if (generator != nullptr) { |
4618 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4618 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
4619 EmitInlineRuntimeCall(expr); | 4619 EmitInlineRuntimeCall(expr, generator); |
4620 return; | 4620 return; |
4621 } | 4621 } |
4622 | 4622 |
4623 Comment cmnt(masm_, "[ CallRuntime"); | 4623 Comment cmnt(masm_, "[ CallRuntime"); |
4624 ZoneList<Expression*>* args = expr->arguments(); | 4624 ZoneList<Expression*>* args = expr->arguments(); |
4625 int arg_count = args->length(); | 4625 int arg_count = args->length(); |
4626 | 4626 |
4627 if (expr->is_jsruntime()) { | 4627 if (expr->is_jsruntime()) { |
4628 // Push the builtins object as the receiver. | 4628 // Push the builtins object as the receiver. |
4629 Register receiver = LoadDescriptor::ReceiverRegister(); | 4629 Register receiver = LoadDescriptor::ReceiverRegister(); |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5466 Assembler::target_address_at(pc_immediate_load_address)) == | 5466 Assembler::target_address_at(pc_immediate_load_address)) == |
5467 reinterpret_cast<uint32_t>( | 5467 reinterpret_cast<uint32_t>( |
5468 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5468 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5469 return OSR_AFTER_STACK_CHECK; | 5469 return OSR_AFTER_STACK_CHECK; |
5470 } | 5470 } |
5471 | 5471 |
5472 | 5472 |
5473 } } // namespace v8::internal | 5473 } } // namespace v8::internal |
5474 | 5474 |
5475 #endif // V8_TARGET_ARCH_MIPS | 5475 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |