| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 __ mov(r5, Operand(r4)); | 1037 __ mov(r5, Operand(r4)); |
| 1038 __ mov(r6, Operand(r4)); | 1038 __ mov(r6, Operand(r4)); |
| 1039 __ mov(r7, Operand(r4)); | 1039 __ mov(r7, Operand(r4)); |
| 1040 if (kR9Available == 1) { | 1040 if (kR9Available == 1) { |
| 1041 __ mov(r9, Operand(r4)); | 1041 __ mov(r9, Operand(r4)); |
| 1042 } | 1042 } |
| 1043 | 1043 |
| 1044 // Invoke the code and pass argc as r0. | 1044 // Invoke the code and pass argc as r0. |
| 1045 __ mov(r0, Operand(r3)); | 1045 __ mov(r0, Operand(r3)); |
| 1046 if (is_construct) { | 1046 if (is_construct) { |
| 1047 __ Call(masm->isolate()->builtins()->JSConstructCall(), | 1047 __ Call(masm->isolate()->builtins()->JSConstructCall()); |
| 1048 RelocInfo::CODE_TARGET); | |
| 1049 } else { | 1048 } else { |
| 1050 ParameterCount actual(r0); | 1049 ParameterCount actual(r0); |
| 1051 __ InvokeFunction(r1, actual, CALL_FUNCTION, | 1050 __ InvokeFunction(r1, actual, CALL_FUNCTION, |
| 1052 NullCallWrapper(), CALL_AS_METHOD); | 1051 NullCallWrapper(), CALL_AS_METHOD); |
| 1053 } | 1052 } |
| 1054 | 1053 |
| 1055 // Exit the JS frame and remove the parameters (except function), and return. | 1054 // Exit the JS frame and remove the parameters (except function), and return. |
| 1056 // Respect ABI stack constraint. | 1055 // Respect ABI stack constraint. |
| 1057 __ LeaveInternalFrame(); | 1056 __ LeaveInternalFrame(); |
| 1058 __ Jump(lr); | 1057 __ Jump(lr); |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1643 __ bind(&dont_adapt_arguments); | 1642 __ bind(&dont_adapt_arguments); |
| 1644 __ Jump(r3); | 1643 __ Jump(r3); |
| 1645 } | 1644 } |
| 1646 | 1645 |
| 1647 | 1646 |
| 1648 #undef __ | 1647 #undef __ |
| 1649 | 1648 |
| 1650 } } // namespace v8::internal | 1649 } } // namespace v8::internal |
| 1651 | 1650 |
| 1652 #endif // V8_TARGET_ARCH_ARM | 1651 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |