| 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 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |