| 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 } | 791 } |
| 792 | 792 |
| 793 // Invoke the code and pass argc as r0. | 793 // Invoke the code and pass argc as r0. |
| 794 __ mov(r0, Operand(r3)); | 794 __ mov(r0, Operand(r3)); |
| 795 if (is_construct) { | 795 if (is_construct) { |
| 796 // No type feedback cell is available | 796 // No type feedback cell is available |
| 797 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); | 797 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
| 798 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 798 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
| 799 __ CallStub(&stub); | 799 __ CallStub(&stub); |
| 800 } else { | 800 } else { |
| 801 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); | 801 ParameterCount actual(r0); |
| 802 __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); |
| 802 } | 803 } |
| 803 // Exit the JS frame and remove the parameters (except function), and | 804 // Exit the JS frame and remove the parameters (except function), and |
| 804 // return. | 805 // return. |
| 805 // Respect ABI stack constraint. | 806 // Respect ABI stack constraint. |
| 806 } | 807 } |
| 807 __ Jump(lr); | 808 __ Jump(lr); |
| 808 | 809 |
| 809 // r0: result | 810 // r0: result |
| 810 } | 811 } |
| 811 | 812 |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1787 } | 1788 } |
| 1788 } | 1789 } |
| 1789 | 1790 |
| 1790 | 1791 |
| 1791 #undef __ | 1792 #undef __ |
| 1792 | 1793 |
| 1793 } // namespace internal | 1794 } // namespace internal |
| 1794 } // namespace v8 | 1795 } // namespace v8 |
| 1795 | 1796 |
| 1796 #endif // V8_TARGET_ARCH_ARM | 1797 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |