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 2850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2861 // Load the arguments. | 2861 // Load the arguments. |
2862 ZoneList<Expression*>* args = expr->arguments(); | 2862 ZoneList<Expression*>* args = expr->arguments(); |
2863 int arg_count = args->length(); | 2863 int arg_count = args->length(); |
2864 for (int i = 0; i < arg_count; i++) { | 2864 for (int i = 0; i < arg_count; i++) { |
2865 VisitForStackValue(args->at(i)); | 2865 VisitForStackValue(args->at(i)); |
2866 } | 2866 } |
2867 | 2867 |
2868 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); | 2868 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); |
2869 // Record source position of the IC call. | 2869 // Record source position of the IC call. |
2870 SetCallPosition(expr); | 2870 SetCallPosition(expr); |
2871 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, mode).code(); | 2871 Handle<Code> ic = |
| 2872 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) |
| 2873 .code(); |
2872 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); | 2874 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); |
2873 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 2875 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
2874 // Don't assign a type feedback id to the IC, since type feedback is provided | 2876 // Don't assign a type feedback id to the IC, since type feedback is provided |
2875 // by the vector above. | 2877 // by the vector above. |
2876 CallIC(ic); | 2878 CallIC(ic); |
2877 RecordJSReturnSite(expr); | 2879 RecordJSReturnSite(expr); |
2878 // Restore context register. | 2880 // Restore context register. |
2879 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2881 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
2880 context()->DropAndPlug(1, v0); | 2882 context()->DropAndPlug(1, v0); |
2881 } | 2883 } |
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4818 reinterpret_cast<uint64_t>( | 4820 reinterpret_cast<uint64_t>( |
4819 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4821 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4820 return OSR_AFTER_STACK_CHECK; | 4822 return OSR_AFTER_STACK_CHECK; |
4821 } | 4823 } |
4822 | 4824 |
4823 | 4825 |
4824 } // namespace internal | 4826 } // namespace internal |
4825 } // namespace v8 | 4827 } // namespace v8 |
4826 | 4828 |
4827 #endif // V8_TARGET_ARCH_MIPS64 | 4829 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |