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 3523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3534 | 3534 |
3535 // Called from C, so do not pop argc and args on exit (preserve sp) | 3535 // Called from C, so do not pop argc and args on exit (preserve sp) |
3536 // No need to save register-passed args | 3536 // No need to save register-passed args |
3537 // Save callee-saved registers (incl. cp and fp), sp, and lr | 3537 // Save callee-saved registers (incl. cp and fp), sp, and lr |
3538 __ stm(db_w, sp, kCalleeSaved | lr.bit()); | 3538 __ stm(db_w, sp, kCalleeSaved | lr.bit()); |
3539 | 3539 |
3540 if (CpuFeatures::IsSupported(VFP3)) { | 3540 if (CpuFeatures::IsSupported(VFP3)) { |
3541 CpuFeatures::Scope scope(VFP3); | 3541 CpuFeatures::Scope scope(VFP3); |
3542 // Save callee-saved vfp registers. | 3542 // Save callee-saved vfp registers. |
3543 __ vstm(db_w, sp, kFirstCalleeSavedDoubleReg, kLastCalleeSavedDoubleReg); | 3543 __ vstm(db_w, sp, kFirstCalleeSavedDoubleReg, kLastCalleeSavedDoubleReg); |
3544 // Set up the reserved register for 0.0. | |
3545 __ vmov(kDoubleRegZero, 0.0); | |
3546 } | 3544 } |
3547 | 3545 |
3548 // Get address of argv, see stm above. | 3546 // Get address of argv, see stm above. |
3549 // r0: code entry | 3547 // r0: code entry |
3550 // r1: function | 3548 // r1: function |
3551 // r2: receiver | 3549 // r2: receiver |
3552 // r3: argc | 3550 // r3: argc |
3553 | 3551 |
3554 // Setup argv in r4. | 3552 // Setup argv in r4. |
3555 int offset_to_argv = (kNumCalleeSaved + 1) * kPointerSize; | 3553 int offset_to_argv = (kNumCalleeSaved + 1) * kPointerSize; |
(...skipping 3047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6603 __ mov(result, Operand(0)); | 6601 __ mov(result, Operand(0)); |
6604 __ Ret(); | 6602 __ Ret(); |
6605 } | 6603 } |
6606 | 6604 |
6607 | 6605 |
6608 #undef __ | 6606 #undef __ |
6609 | 6607 |
6610 } } // namespace v8::internal | 6608 } } // namespace v8::internal |
6611 | 6609 |
6612 #endif // V8_TARGET_ARCH_ARM | 6610 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |