| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 // x29 : frame pointer (fp). | 828 // x29 : frame pointer (fp). |
| 829 | 829 |
| 830 __ Mov(x0, argc); | 830 __ Mov(x0, argc); |
| 831 if (is_construct) { | 831 if (is_construct) { |
| 832 // No type feedback cell is available. | 832 // No type feedback cell is available. |
| 833 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); | 833 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); |
| 834 | 834 |
| 835 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 835 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
| 836 __ CallStub(&stub); | 836 __ CallStub(&stub); |
| 837 } else { | 837 } else { |
| 838 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); | 838 ParameterCount actual(x0); |
| 839 __ InvokeFunction(function, actual, CALL_FUNCTION, NullCallWrapper()); |
| 839 } | 840 } |
| 840 // Exit the JS internal frame and remove the parameters (except function), | 841 // Exit the JS internal frame and remove the parameters (except function), |
| 841 // and return. | 842 // and return. |
| 842 } | 843 } |
| 843 | 844 |
| 844 // Result is in x0. Return. | 845 // Result is in x0. Return. |
| 845 __ Ret(); | 846 __ Ret(); |
| 846 } | 847 } |
| 847 | 848 |
| 848 | 849 |
| (...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1878 } | 1879 } |
| 1879 } | 1880 } |
| 1880 | 1881 |
| 1881 | 1882 |
| 1882 #undef __ | 1883 #undef __ |
| 1883 | 1884 |
| 1884 } // namespace internal | 1885 } // namespace internal |
| 1885 } // namespace v8 | 1886 } // namespace v8 |
| 1886 | 1887 |
| 1887 #endif // V8_TARGET_ARCH_ARM | 1888 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |