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 | 5 |
6 | 6 |
7 #include "v8.h" | 7 #include "v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 __ mov(s4, t0); | 792 __ mov(s4, t0); |
793 __ mov(s5, t0); | 793 __ mov(s5, t0); |
794 // s6 holds the root address. Do not clobber. | 794 // s6 holds the root address. Do not clobber. |
795 // s7 is cp. Do not init. | 795 // s7 is cp. Do not init. |
796 | 796 |
797 // Invoke the code and pass argc as a0. | 797 // Invoke the code and pass argc as a0. |
798 __ mov(a0, a3); | 798 __ mov(a0, a3); |
799 if (is_construct) { | 799 if (is_construct) { |
800 // No type feedback cell is available | 800 // No type feedback cell is available |
801 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 801 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
802 CallConstructStub stub(masm->isolate(), NO_CALL_FUNCTION_FLAGS); | 802 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
803 __ CallStub(&stub); | 803 __ CallStub(&stub); |
804 } else { | 804 } else { |
805 ParameterCount actual(a0); | 805 ParameterCount actual(a0); |
806 __ InvokeFunction(a1, actual, CALL_FUNCTION, NullCallWrapper()); | 806 __ InvokeFunction(a1, actual, CALL_FUNCTION, NullCallWrapper()); |
807 } | 807 } |
808 | 808 |
809 // Leave internal frame. | 809 // Leave internal frame. |
810 } | 810 } |
811 | 811 |
812 __ Jump(ra); | 812 __ Jump(ra); |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 __ break_(0xCC); | 1570 __ break_(0xCC); |
1571 } | 1571 } |
1572 } | 1572 } |
1573 | 1573 |
1574 | 1574 |
1575 #undef __ | 1575 #undef __ |
1576 | 1576 |
1577 } } // namespace v8::internal | 1577 } } // namespace v8::internal |
1578 | 1578 |
1579 #endif // V8_TARGET_ARCH_MIPS | 1579 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |