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 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "codegen.h" | 9 #include "codegen.h" |
10 #include "debug.h" | 10 #include "debug.h" |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 // x26 : root register (root). | 753 // x26 : root register (root). |
754 // x27 : context pointer (cp). | 754 // x27 : context pointer (cp). |
755 // x28 : JS stack pointer (jssp). | 755 // x28 : JS stack pointer (jssp). |
756 // x29 : frame pointer (fp). | 756 // x29 : frame pointer (fp). |
757 | 757 |
758 __ Mov(x0, argc); | 758 __ Mov(x0, argc); |
759 if (is_construct) { | 759 if (is_construct) { |
760 // No type feedback cell is available. | 760 // No type feedback cell is available. |
761 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); | 761 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); |
762 | 762 |
763 CallConstructStub stub(masm->isolate(), NO_CALL_FUNCTION_FLAGS); | 763 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
764 __ CallStub(&stub); | 764 __ CallStub(&stub); |
765 } else { | 765 } else { |
766 ParameterCount actual(x0); | 766 ParameterCount actual(x0); |
767 __ InvokeFunction(function, actual, CALL_FUNCTION, NullCallWrapper()); | 767 __ InvokeFunction(function, actual, CALL_FUNCTION, NullCallWrapper()); |
768 } | 768 } |
769 // Exit the JS internal frame and remove the parameters (except function), | 769 // Exit the JS internal frame and remove the parameters (except function), |
770 // and return. | 770 // and return. |
771 } | 771 } |
772 | 772 |
773 // Result is in x0. Return. | 773 // Result is in x0. Return. |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1560 __ Unreachable(); | 1560 __ Unreachable(); |
1561 } | 1561 } |
1562 } | 1562 } |
1563 | 1563 |
1564 | 1564 |
1565 #undef __ | 1565 #undef __ |
1566 | 1566 |
1567 } } // namespace v8::internal | 1567 } } // namespace v8::internal |
1568 | 1568 |
1569 #endif // V8_TARGET_ARCH_ARM | 1569 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |