| 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2668 __ mov(a2, zero_reg); | 2668 __ mov(a2, zero_reg); |
| 2669 __ GetBuiltinFunction(a1, Builtins::CALL_NON_FUNCTION); | 2669 __ GetBuiltinFunction(a1, Builtins::CALL_NON_FUNCTION); |
| 2670 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 2670 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
| 2671 RelocInfo::CODE_TARGET); | 2671 RelocInfo::CODE_TARGET); |
| 2672 } | 2672 } |
| 2673 | 2673 |
| 2674 | 2674 |
| 2675 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { | 2675 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { |
| 2676 // Wrap the receiver and patch it back onto the stack. | 2676 // Wrap the receiver and patch it back onto the stack. |
| 2677 { FrameScope frame_scope(masm, StackFrame::INTERNAL); | 2677 { FrameScope frame_scope(masm, StackFrame::INTERNAL); |
| 2678 __ Push(a1, a3); | 2678 __ Push(a1); |
| 2679 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); | 2679 __ mov(a0, a3); |
| 2680 ToObjectStub stub(masm->isolate()); |
| 2681 __ CallStub(&stub); |
| 2680 __ pop(a1); | 2682 __ pop(a1); |
| 2681 } | 2683 } |
| 2682 __ Branch(USE_DELAY_SLOT, cont); | 2684 __ Branch(USE_DELAY_SLOT, cont); |
| 2683 __ sw(v0, MemOperand(sp, argc * kPointerSize)); | 2685 __ sw(v0, MemOperand(sp, argc * kPointerSize)); |
| 2684 } | 2686 } |
| 2685 | 2687 |
| 2686 | 2688 |
| 2687 static void CallFunctionNoFeedback(MacroAssembler* masm, | 2689 static void CallFunctionNoFeedback(MacroAssembler* masm, |
| 2688 int argc, bool needs_checks, | 2690 int argc, bool needs_checks, |
| 2689 bool call_as_method) { | 2691 bool call_as_method) { |
| (...skipping 3028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5718 MemOperand(fp, 6 * kPointerSize), NULL); | 5720 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5719 } | 5721 } |
| 5720 | 5722 |
| 5721 | 5723 |
| 5722 #undef __ | 5724 #undef __ |
| 5723 | 5725 |
| 5724 } // namespace internal | 5726 } // namespace internal |
| 5725 } // namespace v8 | 5727 } // namespace v8 |
| 5726 | 5728 |
| 5727 #endif // V8_TARGET_ARCH_MIPS | 5729 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |