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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1837 if (FLAG_trace) { 1837 if (FLAG_trace) {
1838 __ CallRuntime(Runtime::kTraceTailCall); 1838 __ CallRuntime(Runtime::kTraceTailCall);
1839 } 1839 }
1840 // Update profiling counters before the tail call since we will 1840 // Update profiling counters before the tail call since we will
1841 // not return to this function. 1841 // not return to this function.
1842 EmitProfilingCounterHandlingForReturnSequence(true); 1842 EmitProfilingCounterHandlingForReturnSequence(true);
1843 } 1843 }
1844 Handle<Code> code = 1844 Handle<Code> code =
1845 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) 1845 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode())
1846 .code(); 1846 .code();
1847 __ Mov(x3, SmiFromSlot(expr->CallFeedbackICSlot())); 1847 __ Mov(x3, IntFromSlot(expr->CallFeedbackICSlot()));
1848 __ Peek(x1, (arg_count + 1) * kXRegSize); 1848 __ Peek(x1, (arg_count + 1) * kXRegSize);
1849 __ Mov(x0, arg_count); 1849 __ Mov(x0, arg_count);
1850 CallIC(code); 1850 CallIC(code);
1851 OperandStackDepthDecrement(arg_count + 1); 1851 OperandStackDepthDecrement(arg_count + 1);
1852 1852
1853 RecordJSReturnSite(expr); 1853 RecordJSReturnSite(expr);
1854 RestoreContext(); 1854 RestoreContext();
1855 context()->DropAndPlug(1, x0); 1855 context()->DropAndPlug(1, x0);
1856 } 1856 }
1857 1857
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
2910 } 2910 }
2911 2911
2912 return INTERRUPT; 2912 return INTERRUPT;
2913 } 2913 }
2914 2914
2915 2915
2916 } // namespace internal 2916 } // namespace internal
2917 } // namespace v8 2917 } // namespace v8
2918 2918
2919 #endif // V8_TARGET_ARCH_ARM64 2919 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698