OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |