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

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

Issue 2670843002: [stubs] Also port the CallICStub to CSA. (Closed)
Patch Set: Introduce FullCodeGenerator::IntFromSlot. 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/code-stubs.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 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) 1893 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode())
1894 .code(); 1894 .code();
1895 __ mov(r3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); 1895 __ mov(r3, Operand(IntFromSlot(expr->CallFeedbackICSlot())));
1896 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 1896 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize));
1897 __ mov(r0, Operand(arg_count)); 1897 __ mov(r0, Operand(arg_count));
1898 CallIC(code); 1898 CallIC(code);
1899 OperandStackDepthDecrement(arg_count + 1); 1899 OperandStackDepthDecrement(arg_count + 1);
1900 1900
1901 RecordJSReturnSite(expr); 1901 RecordJSReturnSite(expr);
1902 RestoreContext(); 1902 RestoreContext();
1903 context()->DropAndPlug(1, r0); 1903 context()->DropAndPlug(1, r0);
1904 } 1904 }
1905 1905
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2909 DCHECK(interrupt_address == 2909 DCHECK(interrupt_address ==
2910 isolate->builtins()->OnStackReplacement()->entry()); 2910 isolate->builtins()->OnStackReplacement()->entry());
2911 return ON_STACK_REPLACEMENT; 2911 return ON_STACK_REPLACEMENT;
2912 } 2912 }
2913 2913
2914 2914
2915 } // namespace internal 2915 } // namespace internal
2916 } // namespace v8 2916 } // namespace v8
2917 2917
2918 #endif // V8_TARGET_ARCH_ARM 2918 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/code-stubs.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