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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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/crankshaft/hydrogen.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 SetCallPosition(expr, expr->tail_call_mode()); 1883 SetCallPosition(expr, expr->tail_call_mode());
1884 if (expr->tail_call_mode() == TailCallMode::kAllow) { 1884 if (expr->tail_call_mode() == TailCallMode::kAllow) {
1885 if (FLAG_trace) { 1885 if (FLAG_trace) {
1886 __ CallRuntime(Runtime::kTraceTailCall); 1886 __ CallRuntime(Runtime::kTraceTailCall);
1887 } 1887 }
1888 // Update profiling counters before the tail call since we will 1888 // Update profiling counters before the tail call since we will
1889 // not return to this function. 1889 // not return to this function.
1890 EmitProfilingCounterHandlingForReturnSequence(true); 1890 EmitProfilingCounterHandlingForReturnSequence(true);
1891 } 1891 }
1892 Handle<Code> code = 1892 Handle<Code> code =
1893 CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code(); 1893 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode())
1894 .code();
1894 __ mov(r3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); 1895 __ mov(r3, Operand(SmiFromSlot(expr->CallFeedbackICSlot())));
1895 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 1896 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize));
1896 __ mov(r0, Operand(arg_count)); 1897 __ mov(r0, Operand(arg_count));
1897 CallIC(code); 1898 CallIC(code);
1898 OperandStackDepthDecrement(arg_count + 1); 1899 OperandStackDepthDecrement(arg_count + 1);
1899 1900
1900 RecordJSReturnSite(expr); 1901 RecordJSReturnSite(expr);
1901 RestoreContext(); 1902 RestoreContext();
1902 context()->DropAndPlug(1, r0); 1903 context()->DropAndPlug(1, r0);
1903 } 1904 }
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2908 DCHECK(interrupt_address == 2909 DCHECK(interrupt_address ==
2909 isolate->builtins()->OnStackReplacement()->entry()); 2910 isolate->builtins()->OnStackReplacement()->entry());
2910 return ON_STACK_REPLACEMENT; 2911 return ON_STACK_REPLACEMENT;
2911 } 2912 }
2912 2913
2913 2914
2914 } // namespace internal 2915 } // namespace internal
2915 } // namespace v8 2916 } // namespace v8
2916 2917
2917 #endif // V8_TARGET_ARCH_ARM 2918 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698