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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1908 if (FLAG_trace) { | 1908 if (FLAG_trace) { |
1909 __ CallRuntime(Runtime::kTraceTailCall); | 1909 __ CallRuntime(Runtime::kTraceTailCall); |
1910 } | 1910 } |
1911 // Update profiling counters before the tail call since we will | 1911 // Update profiling counters before the tail call since we will |
1912 // not return to this function. | 1912 // not return to this function. |
1913 EmitProfilingCounterHandlingForReturnSequence(true); | 1913 EmitProfilingCounterHandlingForReturnSequence(true); |
1914 } | 1914 } |
1915 Handle<Code> code = | 1915 Handle<Code> code = |
1916 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) | 1916 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) |
1917 .code(); | 1917 .code(); |
1918 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); | 1918 __ li(a3, Operand(IntFromSlot(expr->CallFeedbackICSlot()))); |
1919 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 1919 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
1920 __ li(a0, Operand(arg_count)); | 1920 __ li(a0, Operand(arg_count)); |
1921 CallIC(code); | 1921 CallIC(code); |
1922 OperandStackDepthDecrement(arg_count + 1); | 1922 OperandStackDepthDecrement(arg_count + 1); |
1923 | 1923 |
1924 RecordJSReturnSite(expr); | 1924 RecordJSReturnSite(expr); |
1925 RestoreContext(); | 1925 RestoreContext(); |
1926 context()->DropAndPlug(1, v0); | 1926 context()->DropAndPlug(1, v0); |
1927 } | 1927 } |
1928 | 1928 |
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 reinterpret_cast<uint64_t>( | 2878 reinterpret_cast<uint64_t>( |
2879 isolate->builtins()->OnStackReplacement()->entry())); | 2879 isolate->builtins()->OnStackReplacement()->entry())); |
2880 return ON_STACK_REPLACEMENT; | 2880 return ON_STACK_REPLACEMENT; |
2881 } | 2881 } |
2882 | 2882 |
2883 | 2883 |
2884 } // namespace internal | 2884 } // namespace internal |
2885 } // namespace v8 | 2885 } // namespace v8 |
2886 | 2886 |
2887 #endif // V8_TARGET_ARCH_MIPS64 | 2887 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |