| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 __ mr(r17, r7); | 784 __ mr(r17, r7); |
| 785 | 785 |
| 786 // Invoke the code and pass argc as r3. | 786 // Invoke the code and pass argc as r3. |
| 787 __ mr(r3, r6); | 787 __ mr(r3, r6); |
| 788 if (is_construct) { | 788 if (is_construct) { |
| 789 // No type feedback cell is available | 789 // No type feedback cell is available |
| 790 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex); | 790 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex); |
| 791 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 791 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
| 792 __ CallStub(&stub); | 792 __ CallStub(&stub); |
| 793 } else { | 793 } else { |
| 794 ParameterCount actual(r3); | 794 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); |
| 795 __ InvokeFunction(r4, actual, CALL_FUNCTION, NullCallWrapper()); | |
| 796 } | 795 } |
| 797 // Exit the JS frame and remove the parameters (except function), and | 796 // Exit the JS frame and remove the parameters (except function), and |
| 798 // return. | 797 // return. |
| 799 } | 798 } |
| 800 __ blr(); | 799 __ blr(); |
| 801 | 800 |
| 802 // r3: result | 801 // r3: result |
| 803 } | 802 } |
| 804 | 803 |
| 805 | 804 |
| (...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 __ bkpt(0); | 1821 __ bkpt(0); |
| 1823 } | 1822 } |
| 1824 } | 1823 } |
| 1825 | 1824 |
| 1826 | 1825 |
| 1827 #undef __ | 1826 #undef __ |
| 1828 } // namespace internal | 1827 } // namespace internal |
| 1829 } // namespace v8 | 1828 } // namespace v8 |
| 1830 | 1829 |
| 1831 #endif // V8_TARGET_ARCH_PPC | 1830 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |