OLD | NEW |
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 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1835 SetCallPosition(expr, expr->tail_call_mode()); | 1835 SetCallPosition(expr, expr->tail_call_mode()); |
1836 if (expr->tail_call_mode() == TailCallMode::kAllow) { | 1836 if (expr->tail_call_mode() == TailCallMode::kAllow) { |
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::CallIC(isolate(), mode, expr->tail_call_mode()).code(); | 1845 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) |
| 1846 .code(); |
1846 __ Mov(x3, SmiFromSlot(expr->CallFeedbackICSlot())); | 1847 __ Mov(x3, SmiFromSlot(expr->CallFeedbackICSlot())); |
1847 __ Peek(x1, (arg_count + 1) * kXRegSize); | 1848 __ Peek(x1, (arg_count + 1) * kXRegSize); |
1848 __ Mov(x0, arg_count); | 1849 __ Mov(x0, arg_count); |
1849 CallIC(code); | 1850 CallIC(code); |
1850 OperandStackDepthDecrement(arg_count + 1); | 1851 OperandStackDepthDecrement(arg_count + 1); |
1851 | 1852 |
1852 RecordJSReturnSite(expr); | 1853 RecordJSReturnSite(expr); |
1853 RestoreContext(); | 1854 RestoreContext(); |
1854 context()->DropAndPlug(1, x0); | 1855 context()->DropAndPlug(1, x0); |
1855 } | 1856 } |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2909 } | 2910 } |
2910 | 2911 |
2911 return INTERRUPT; | 2912 return INTERRUPT; |
2912 } | 2913 } |
2913 | 2914 |
2914 | 2915 |
2915 } // namespace internal | 2916 } // namespace internal |
2916 } // namespace v8 | 2917 } // namespace v8 |
2917 | 2918 |
2918 #endif // V8_TARGET_ARCH_ARM64 | 2919 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |