| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 4598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4609 ExternalReference debug_is_active = | 4609 ExternalReference debug_is_active = |
| 4610 ExternalReference::debug_is_active_address(isolate()); | 4610 ExternalReference::debug_is_active_address(isolate()); |
| 4611 __ li(at, Operand(debug_is_active)); | 4611 __ li(at, Operand(debug_is_active)); |
| 4612 __ lbu(v0, MemOperand(at)); | 4612 __ lbu(v0, MemOperand(at)); |
| 4613 __ SmiTag(v0); | 4613 __ SmiTag(v0); |
| 4614 context()->Plug(v0); | 4614 context()->Plug(v0); |
| 4615 } | 4615 } |
| 4616 | 4616 |
| 4617 | 4617 |
| 4618 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4618 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
| 4619 if (expr->function() != NULL && | 4619 InlineFunctionGenerator generator = FindInlineFunctionGenerator(expr); |
| 4620 expr->function()->intrinsic_type == Runtime::INLINE) { | 4620 if (generator != nullptr) { |
| 4621 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4621 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
| 4622 EmitInlineRuntimeCall(expr); | 4622 EmitInlineRuntimeCall(expr, generator); |
| 4623 return; | 4623 return; |
| 4624 } | 4624 } |
| 4625 | 4625 |
| 4626 Comment cmnt(masm_, "[ CallRuntime"); | 4626 Comment cmnt(masm_, "[ CallRuntime"); |
| 4627 ZoneList<Expression*>* args = expr->arguments(); | 4627 ZoneList<Expression*>* args = expr->arguments(); |
| 4628 int arg_count = args->length(); | 4628 int arg_count = args->length(); |
| 4629 | 4629 |
| 4630 if (expr->is_jsruntime()) { | 4630 if (expr->is_jsruntime()) { |
| 4631 // Push the builtins object as the receiver. | 4631 // Push the builtins object as the receiver. |
| 4632 Register receiver = LoadDescriptor::ReceiverRegister(); | 4632 Register receiver = LoadDescriptor::ReceiverRegister(); |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5473 Assembler::target_address_at(pc_immediate_load_address)) == | 5473 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5474 reinterpret_cast<uint64_t>( | 5474 reinterpret_cast<uint64_t>( |
| 5475 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5475 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5476 return OSR_AFTER_STACK_CHECK; | 5476 return OSR_AFTER_STACK_CHECK; |
| 5477 } | 5477 } |
| 5478 | 5478 |
| 5479 | 5479 |
| 5480 } } // namespace v8::internal | 5480 } } // namespace v8::internal |
| 5481 | 5481 |
| 5482 #endif // V8_TARGET_ARCH_MIPS64 | 5482 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |