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

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

Issue 2670073002: [stubs] Fix naming of CallIC and CallICTrampoline. (Closed)
Patch Set: Created 3 years, 10 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/full-codegen/s390/full-codegen-s390.cc ('k') | src/full-codegen/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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 SetCallPosition(expr, expr->tail_call_mode()); 1793 SetCallPosition(expr, expr->tail_call_mode());
1794 if (expr->tail_call_mode() == TailCallMode::kAllow) { 1794 if (expr->tail_call_mode() == TailCallMode::kAllow) {
1795 if (FLAG_trace) { 1795 if (FLAG_trace) {
1796 __ CallRuntime(Runtime::kTraceTailCall); 1796 __ CallRuntime(Runtime::kTraceTailCall);
1797 } 1797 }
1798 // Update profiling counters before the tail call since we will 1798 // Update profiling counters before the tail call since we will
1799 // not return to this function. 1799 // not return to this function.
1800 EmitProfilingCounterHandlingForReturnSequence(true); 1800 EmitProfilingCounterHandlingForReturnSequence(true);
1801 } 1801 }
1802 Handle<Code> code = 1802 Handle<Code> code =
1803 CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code(); 1803 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode())
1804 .code();
1804 __ Move(rdx, SmiFromSlot(expr->CallFeedbackICSlot())); 1805 __ Move(rdx, SmiFromSlot(expr->CallFeedbackICSlot()));
1805 __ movp(rdi, Operand(rsp, (arg_count + 1) * kPointerSize)); 1806 __ movp(rdi, Operand(rsp, (arg_count + 1) * kPointerSize));
1806 __ Set(rax, arg_count); 1807 __ Set(rax, arg_count);
1807 CallIC(code); 1808 CallIC(code);
1808 OperandStackDepthDecrement(arg_count + 1); 1809 OperandStackDepthDecrement(arg_count + 1);
1809 1810
1810 RecordJSReturnSite(expr); 1811 RecordJSReturnSite(expr);
1811 RestoreContext(); 1812 RestoreContext();
1812 // Discard the function left on TOS. 1813 // Discard the function left on TOS.
1813 context()->DropAndPlug(1, rax); 1814 context()->DropAndPlug(1, rax);
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 DCHECK_EQ( 2762 DCHECK_EQ(
2762 isolate->builtins()->OnStackReplacement()->entry(), 2763 isolate->builtins()->OnStackReplacement()->entry(),
2763 Assembler::target_address_at(call_target_address, unoptimized_code)); 2764 Assembler::target_address_at(call_target_address, unoptimized_code));
2764 return ON_STACK_REPLACEMENT; 2765 return ON_STACK_REPLACEMENT;
2765 } 2766 }
2766 2767
2767 } // namespace internal 2768 } // namespace internal
2768 } // namespace v8 2769 } // namespace v8
2769 2770
2770 #endif // V8_TARGET_ARCH_X64 2771 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698