| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 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 4277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4288 ExternalReference debug_is_active = | 4288 ExternalReference debug_is_active = |
| 4289 ExternalReference::debug_is_active_address(isolate()); | 4289 ExternalReference::debug_is_active_address(isolate()); |
| 4290 __ Mov(x10, debug_is_active); | 4290 __ Mov(x10, debug_is_active); |
| 4291 __ Ldrb(x0, MemOperand(x10)); | 4291 __ Ldrb(x0, MemOperand(x10)); |
| 4292 __ SmiTag(x0); | 4292 __ SmiTag(x0); |
| 4293 context()->Plug(x0); | 4293 context()->Plug(x0); |
| 4294 } | 4294 } |
| 4295 | 4295 |
| 4296 | 4296 |
| 4297 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 4297 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
| 4298 if (expr->function() != NULL && | 4298 InlineFunctionGenerator generator = FindInlineFunctionGenerator(expr); |
| 4299 expr->function()->intrinsic_type == Runtime::INLINE) { | 4299 if (generator != nullptr) { |
| 4300 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 4300 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
| 4301 EmitInlineRuntimeCall(expr); | 4301 EmitInlineRuntimeCall(expr, generator); |
| 4302 return; | 4302 return; |
| 4303 } | 4303 } |
| 4304 | 4304 |
| 4305 Comment cmnt(masm_, "[ CallRunTime"); | 4305 Comment cmnt(masm_, "[ CallRunTime"); |
| 4306 ZoneList<Expression*>* args = expr->arguments(); | 4306 ZoneList<Expression*>* args = expr->arguments(); |
| 4307 int arg_count = args->length(); | 4307 int arg_count = args->length(); |
| 4308 | 4308 |
| 4309 if (expr->is_jsruntime()) { | 4309 if (expr->is_jsruntime()) { |
| 4310 // Push the builtins object as the receiver. | 4310 // Push the builtins object as the receiver. |
| 4311 __ Ldr(x10, GlobalObjectMemOperand()); | 4311 __ Ldr(x10, GlobalObjectMemOperand()); |
| (...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5505 return previous_; | 5505 return previous_; |
| 5506 } | 5506 } |
| 5507 | 5507 |
| 5508 | 5508 |
| 5509 #undef __ | 5509 #undef __ |
| 5510 | 5510 |
| 5511 | 5511 |
| 5512 } } // namespace v8::internal | 5512 } } // namespace v8::internal |
| 5513 | 5513 |
| 5514 #endif // V8_TARGET_ARCH_ARM64 | 5514 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |