| 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 ASSERT(!temp1.is(temp2)); | 587 ASSERT(!temp1.is(temp2)); |
| 588 ASSERT(!temp1.is(temp3)); | 588 ASSERT(!temp1.is(temp3)); |
| 589 ASSERT(!temp2.is(temp3)); | 589 ASSERT(!temp2.is(temp3)); |
| 590 ASSERT(ExternalReference::math_exp_constants(0).address() != NULL); | 590 ASSERT(ExternalReference::math_exp_constants(0).address() != NULL); |
| 591 | 591 |
| 592 Label done; | 592 Label done; |
| 593 | 593 |
| 594 __ mov(temp3, Operand(ExternalReference::math_exp_constants(0))); | 594 __ mov(temp3, Operand(ExternalReference::math_exp_constants(0))); |
| 595 | 595 |
| 596 __ vldr(double_scratch1, ExpConstant(0, temp3)); | 596 __ vldr(double_scratch1, ExpConstant(0, temp3)); |
| 597 __ vmov(result, kDoubleRegZero); | 597 __ vmov(result, DwVfpRegister::ZeroReg()); |
| 598 __ VFPCompareAndSetFlags(double_scratch1, input); | 598 __ VFPCompareAndSetFlags(double_scratch1, input); |
| 599 __ b(ge, &done); | 599 __ b(ge, &done); |
| 600 __ vldr(double_scratch2, ExpConstant(1, temp3)); | 600 __ vldr(double_scratch2, ExpConstant(1, temp3)); |
| 601 __ VFPCompareAndSetFlags(input, double_scratch2); | 601 __ VFPCompareAndSetFlags(input, double_scratch2); |
| 602 __ vldr(result, ExpConstant(2, temp3)); | 602 __ vldr(result, ExpConstant(2, temp3)); |
| 603 __ b(ge, &done); | 603 __ b(ge, &done); |
| 604 __ vldr(double_scratch1, ExpConstant(3, temp3)); | 604 __ vldr(double_scratch1, ExpConstant(3, temp3)); |
| 605 __ vldr(result, ExpConstant(4, temp3)); | 605 __ vldr(result, ExpConstant(4, temp3)); |
| 606 __ vmul(double_scratch1, double_scratch1, input); | 606 __ vmul(double_scratch1, double_scratch1, input); |
| 607 __ vadd(double_scratch1, double_scratch1, result); | 607 __ vadd(double_scratch1, double_scratch1, result); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 patcher.masm()->add(r0, pc, Operand(-8)); | 698 patcher.masm()->add(r0, pc, Operand(-8)); |
| 699 patcher.masm()->ldr(pc, MemOperand(pc, -4)); | 699 patcher.masm()->ldr(pc, MemOperand(pc, -4)); |
| 700 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 700 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); |
| 701 } | 701 } |
| 702 } | 702 } |
| 703 | 703 |
| 704 | 704 |
| 705 } } // namespace v8::internal | 705 } } // namespace v8::internal |
| 706 | 706 |
| 707 #endif // V8_TARGET_ARCH_ARM | 707 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |