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

Side by Side Diff: src/x64/full-codegen-x64.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/runtime/runtime.cc ('k') | src/x87/full-codegen-x87.cc » ('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 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_X64 7 #if V8_TARGET_ARCH_X64
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 4536 matching lines...) Expand 10 before | Expand all | Expand 10 after
4547 ExternalReference debug_is_active = 4547 ExternalReference debug_is_active =
4548 ExternalReference::debug_is_active_address(isolate()); 4548 ExternalReference::debug_is_active_address(isolate());
4549 __ Move(kScratchRegister, debug_is_active); 4549 __ Move(kScratchRegister, debug_is_active);
4550 __ movzxbp(rax, Operand(kScratchRegister, 0)); 4550 __ movzxbp(rax, Operand(kScratchRegister, 0));
4551 __ Integer32ToSmi(rax, rax); 4551 __ Integer32ToSmi(rax, rax);
4552 context()->Plug(rax); 4552 context()->Plug(rax);
4553 } 4553 }
4554 4554
4555 4555
4556 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { 4556 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
4557 if (expr->function() != NULL && 4557 InlineFunctionGenerator generator = FindInlineFunctionGenerator(expr);
4558 expr->function()->intrinsic_type == Runtime::INLINE) { 4558 if (generator != nullptr) {
4559 Comment cmnt(masm_, "[ InlineRuntimeCall"); 4559 Comment cmnt(masm_, "[ InlineRuntimeCall");
4560 EmitInlineRuntimeCall(expr); 4560 EmitInlineRuntimeCall(expr, generator);
4561 return; 4561 return;
4562 } 4562 }
4563 4563
4564 Comment cmnt(masm_, "[ CallRuntime"); 4564 Comment cmnt(masm_, "[ CallRuntime");
4565 ZoneList<Expression*>* args = expr->arguments(); 4565 ZoneList<Expression*>* args = expr->arguments();
4566 int arg_count = args->length(); 4566 int arg_count = args->length();
4567 4567
4568 if (expr->is_jsruntime()) { 4568 if (expr->is_jsruntime()) {
4569 // Push the builtins object as receiver. 4569 // Push the builtins object as receiver.
4570 __ movp(rax, GlobalObjectOperand()); 4570 __ movp(rax, GlobalObjectOperand());
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
5406 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5406 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5407 Assembler::target_address_at(call_target_address, 5407 Assembler::target_address_at(call_target_address,
5408 unoptimized_code)); 5408 unoptimized_code));
5409 return OSR_AFTER_STACK_CHECK; 5409 return OSR_AFTER_STACK_CHECK;
5410 } 5410 }
5411 5411
5412 5412
5413 } } // namespace v8::internal 5413 } } // namespace v8::internal
5414 5414
5415 #endif // V8_TARGET_ARCH_X64 5415 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime/runtime.cc ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698