OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 } | 800 } |
801 if (kR9Available == 1) { | 801 if (kR9Available == 1) { |
802 __ mov(r9, Operand(r4)); | 802 __ mov(r9, Operand(r4)); |
803 } | 803 } |
804 | 804 |
805 // Invoke the code and pass argc as r0. | 805 // Invoke the code and pass argc as r0. |
806 __ mov(r0, Operand(r3)); | 806 __ mov(r0, Operand(r3)); |
807 if (is_construct) { | 807 if (is_construct) { |
808 // No type feedback cell is available | 808 // No type feedback cell is available |
809 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); | 809 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
810 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 810 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS); |
811 __ CallStub(&stub); | 811 __ CallStub(&stub); |
812 } else { | 812 } else { |
813 ParameterCount actual(r0); | 813 ParameterCount actual(r0); |
814 __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); | 814 __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); |
815 } | 815 } |
816 // Exit the JS frame and remove the parameters (except function), and | 816 // Exit the JS frame and remove the parameters (except function), and |
817 // return. | 817 // return. |
818 // Respect ABI stack constraint. | 818 // Respect ABI stack constraint. |
819 } | 819 } |
820 __ Jump(lr); | 820 __ Jump(lr); |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 __ bind(&dont_adapt_arguments); | 1546 __ bind(&dont_adapt_arguments); |
1547 __ Jump(r3); | 1547 __ Jump(r3); |
1548 } | 1548 } |
1549 | 1549 |
1550 | 1550 |
1551 #undef __ | 1551 #undef __ |
1552 | 1552 |
1553 } } // namespace v8::internal | 1553 } } // namespace v8::internal |
1554 | 1554 |
1555 #endif // V8_TARGET_ARCH_ARM | 1555 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |