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 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2847 EmitResolvePossiblyDirectEval(arg_count); | 2847 EmitResolvePossiblyDirectEval(arg_count); |
2848 | 2848 |
2849 // Touch up the stack with the resolved function. | 2849 // Touch up the stack with the resolved function. |
2850 __ sd(v0, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 2850 __ sd(v0, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
2851 | 2851 |
2852 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); | 2852 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); |
2853 // Record source position for debugger. | 2853 // Record source position for debugger. |
2854 SetCallPosition(expr); | 2854 SetCallPosition(expr); |
2855 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 2855 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
2856 __ li(a0, Operand(arg_count)); | 2856 __ li(a0, Operand(arg_count)); |
2857 __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); | 2857 __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kAny, |
| 2858 expr->tail_call_mode()), |
| 2859 RelocInfo::CODE_TARGET); |
2858 RecordJSReturnSite(expr); | 2860 RecordJSReturnSite(expr); |
2859 // Restore context register. | 2861 // Restore context register. |
2860 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2862 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
2861 context()->DropAndPlug(1, v0); | 2863 context()->DropAndPlug(1, v0); |
2862 } | 2864 } |
2863 | 2865 |
2864 | 2866 |
2865 void FullCodeGenerator::VisitCallNew(CallNew* expr) { | 2867 void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
2866 Comment cmnt(masm_, "[ CallNew"); | 2868 Comment cmnt(masm_, "[ CallNew"); |
2867 // According to ECMA-262, section 11.2.2, page 44, the function | 2869 // According to ECMA-262, section 11.2.2, page 44, the function |
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4513 reinterpret_cast<uint64_t>( | 4515 reinterpret_cast<uint64_t>( |
4514 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4516 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4515 return OSR_AFTER_STACK_CHECK; | 4517 return OSR_AFTER_STACK_CHECK; |
4516 } | 4518 } |
4517 | 4519 |
4518 | 4520 |
4519 } // namespace internal | 4521 } // namespace internal |
4520 } // namespace v8 | 4522 } // namespace v8 |
4521 | 4523 |
4522 #endif // V8_TARGET_ARCH_MIPS64 | 4524 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |