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 #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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 // s7 is cp. Do not init. | 787 // s7 is cp. Do not init. |
788 | 788 |
789 // Invoke the code and pass argc as a0. | 789 // Invoke the code and pass argc as a0. |
790 __ mov(a0, a3); | 790 __ mov(a0, a3); |
791 if (is_construct) { | 791 if (is_construct) { |
792 // No type feedback cell is available | 792 // No type feedback cell is available |
793 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 793 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
794 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 794 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
795 __ CallStub(&stub); | 795 __ CallStub(&stub); |
796 } else { | 796 } else { |
797 ParameterCount actual(a0); | 797 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); |
798 __ InvokeFunction(a1, actual, CALL_FUNCTION, NullCallWrapper()); | |
799 } | 798 } |
800 | 799 |
801 // Leave internal frame. | 800 // Leave internal frame. |
802 } | 801 } |
803 __ Jump(ra); | 802 __ Jump(ra); |
804 } | 803 } |
805 | 804 |
806 | 805 |
807 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { | 806 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { |
808 Generate_JSEntryTrampolineHelper(masm, false); | 807 Generate_JSEntryTrampolineHelper(masm, false); |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 } | 1805 } |
1807 } | 1806 } |
1808 | 1807 |
1809 | 1808 |
1810 #undef __ | 1809 #undef __ |
1811 | 1810 |
1812 } // namespace internal | 1811 } // namespace internal |
1813 } // namespace v8 | 1812 } // namespace v8 |
1814 | 1813 |
1815 #endif // V8_TARGET_ARCH_MIPS64 | 1814 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |