OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 // x26 : root register (root). | 778 // x26 : root register (root). |
779 // x27 : context pointer (cp). | 779 // x27 : context pointer (cp). |
780 // x28 : JS stack pointer (jssp). | 780 // x28 : JS stack pointer (jssp). |
781 // x29 : frame pointer (fp). | 781 // x29 : frame pointer (fp). |
782 | 782 |
783 __ Mov(x0, argc); | 783 __ Mov(x0, argc); |
784 if (is_construct) { | 784 if (is_construct) { |
785 // No type feedback cell is available. | 785 // No type feedback cell is available. |
786 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); | 786 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); |
787 | 787 |
788 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 788 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS); |
789 __ CallStub(&stub); | 789 __ CallStub(&stub); |
790 } else { | 790 } else { |
791 ParameterCount actual(x0); | 791 ParameterCount actual(x0); |
792 __ InvokeFunction(function, actual, CALL_FUNCTION, NullCallWrapper()); | 792 __ InvokeFunction(function, actual, CALL_FUNCTION, NullCallWrapper()); |
793 } | 793 } |
794 // Exit the JS internal frame and remove the parameters (except function), | 794 // Exit the JS internal frame and remove the parameters (except function), |
795 // and return. | 795 // and return. |
796 } | 796 } |
797 | 797 |
798 // Result is in x0. Return. | 798 // Result is in x0. Return. |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1586 __ Brk(0); | 1586 __ Brk(0); |
1587 } | 1587 } |
1588 } | 1588 } |
1589 | 1589 |
1590 | 1590 |
1591 #undef __ | 1591 #undef __ |
1592 | 1592 |
1593 } } // namespace v8::internal | 1593 } } // namespace v8::internal |
1594 | 1594 |
1595 #endif // V8_TARGET_ARCH_ARM | 1595 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |