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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 // s7 is cp. Do not init. | 789 // s7 is cp. Do not init. |
790 | 790 |
791 // Invoke the code and pass argc as a0. | 791 // Invoke the code and pass argc as a0. |
792 __ mov(a0, a3); | 792 __ mov(a0, a3); |
793 if (is_construct) { | 793 if (is_construct) { |
794 // No type feedback cell is available | 794 // No type feedback cell is available |
795 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 795 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
796 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 796 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
797 __ CallStub(&stub); | 797 __ CallStub(&stub); |
798 } else { | 798 } else { |
799 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); | 799 ParameterCount actual(a0); |
| 800 __ InvokeFunction(a1, actual, CALL_FUNCTION, NullCallWrapper()); |
800 } | 801 } |
801 | 802 |
802 // Leave internal frame. | 803 // Leave internal frame. |
803 } | 804 } |
804 | 805 |
805 __ Jump(ra); | 806 __ Jump(ra); |
806 } | 807 } |
807 | 808 |
808 | 809 |
809 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { | 810 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 } | 1810 } |
1810 } | 1811 } |
1811 | 1812 |
1812 | 1813 |
1813 #undef __ | 1814 #undef __ |
1814 | 1815 |
1815 } // namespace internal | 1816 } // namespace internal |
1816 } // namespace v8 | 1817 } // namespace v8 |
1817 | 1818 |
1818 #endif // V8_TARGET_ARCH_MIPS | 1819 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |