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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 2696 matching lines...) Loading... |
2707 __ mov(a2, zero_reg); | 2707 __ mov(a2, zero_reg); |
2708 __ GetBuiltinFunction(a1, Builtins::CALL_NON_FUNCTION); | 2708 __ GetBuiltinFunction(a1, Builtins::CALL_NON_FUNCTION); |
2709 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 2709 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
2710 RelocInfo::CODE_TARGET); | 2710 RelocInfo::CODE_TARGET); |
2711 } | 2711 } |
2712 | 2712 |
2713 | 2713 |
2714 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { | 2714 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { |
2715 // Wrap the receiver and patch it back onto the stack. | 2715 // Wrap the receiver and patch it back onto the stack. |
2716 { FrameScope frame_scope(masm, StackFrame::INTERNAL); | 2716 { FrameScope frame_scope(masm, StackFrame::INTERNAL); |
2717 __ Push(a1, a3); | 2717 __ Push(a1); |
2718 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); | 2718 __ mov(a0, a3); |
| 2719 ToObjectStub stub(masm->isolate()); |
| 2720 __ CallStub(&stub); |
2719 __ pop(a1); | 2721 __ pop(a1); |
2720 } | 2722 } |
2721 __ Branch(USE_DELAY_SLOT, cont); | 2723 __ Branch(USE_DELAY_SLOT, cont); |
2722 __ sd(v0, MemOperand(sp, argc * kPointerSize)); | 2724 __ sd(v0, MemOperand(sp, argc * kPointerSize)); |
2723 } | 2725 } |
2724 | 2726 |
2725 | 2727 |
2726 static void CallFunctionNoFeedback(MacroAssembler* masm, | 2728 static void CallFunctionNoFeedback(MacroAssembler* masm, |
2727 int argc, bool needs_checks, | 2729 int argc, bool needs_checks, |
2728 bool call_as_method) { | 2730 bool call_as_method) { |
(...skipping 3021 matching lines...) Loading... |
5750 MemOperand(fp, 6 * kPointerSize), NULL); | 5752 MemOperand(fp, 6 * kPointerSize), NULL); |
5751 } | 5753 } |
5752 | 5754 |
5753 | 5755 |
5754 #undef __ | 5756 #undef __ |
5755 | 5757 |
5756 } // namespace internal | 5758 } // namespace internal |
5757 } // namespace v8 | 5759 } // namespace v8 |
5758 | 5760 |
5759 #endif // V8_TARGET_ARCH_MIPS64 | 5761 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |