Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Side by Side Diff: src/arm64/full-codegen-arm64.cc

Issue 978123003: Merged INLINE_OPTIMIZED intrinsic type into INLINE. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed feedback. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/compiler/js-intrinsic-lowering.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/compiler/js-intrinsic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698