| 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 ASSERT(!temp1.is(temp2)); | 543 ASSERT(!temp1.is(temp2)); |
| 544 ASSERT(!temp1.is(temp3)); | 544 ASSERT(!temp1.is(temp3)); |
| 545 ASSERT(!temp2.is(temp3)); | 545 ASSERT(!temp2.is(temp3)); |
| 546 ASSERT(ExternalReference::math_exp_constants(0).address() != NULL); | 546 ASSERT(ExternalReference::math_exp_constants(0).address() != NULL); |
| 547 | 547 |
| 548 Label done; | 548 Label done; |
| 549 | 549 |
| 550 __ mov(temp3, Operand(ExternalReference::math_exp_constants(0))); | 550 __ mov(temp3, Operand(ExternalReference::math_exp_constants(0))); |
| 551 | 551 |
| 552 __ vldr(double_scratch1, ExpConstant(0, temp3)); | 552 __ vldr(double_scratch1, ExpConstant(0, temp3)); |
| 553 __ vmov(result, kDoubleRegZero); | 553 __ vmov(result, DwVfpRegister::ZeroReg()); |
| 554 __ VFPCompareAndSetFlags(double_scratch1, input); | 554 __ VFPCompareAndSetFlags(double_scratch1, input); |
| 555 __ b(ge, &done); | 555 __ b(ge, &done); |
| 556 __ vldr(double_scratch2, ExpConstant(1, temp3)); | 556 __ vldr(double_scratch2, ExpConstant(1, temp3)); |
| 557 __ VFPCompareAndSetFlags(input, double_scratch2); | 557 __ VFPCompareAndSetFlags(input, double_scratch2); |
| 558 __ vldr(result, ExpConstant(2, temp3)); | 558 __ vldr(result, ExpConstant(2, temp3)); |
| 559 __ b(ge, &done); | 559 __ b(ge, &done); |
| 560 __ vldr(double_scratch1, ExpConstant(3, temp3)); | 560 __ vldr(double_scratch1, ExpConstant(3, temp3)); |
| 561 __ vldr(result, ExpConstant(4, temp3)); | 561 __ vldr(result, ExpConstant(4, temp3)); |
| 562 __ vmul(double_scratch1, double_scratch1, input); | 562 __ vmul(double_scratch1, double_scratch1, input); |
| 563 __ vadd(double_scratch1, double_scratch1, result); | 563 __ vadd(double_scratch1, double_scratch1, result); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 patcher.masm()->add(r0, pc, Operand(-8)); | 654 patcher.masm()->add(r0, pc, Operand(-8)); |
| 655 patcher.masm()->ldr(pc, MemOperand(pc, -4)); | 655 patcher.masm()->ldr(pc, MemOperand(pc, -4)); |
| 656 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 656 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); |
| 657 } | 657 } |
| 658 } | 658 } |
| 659 | 659 |
| 660 | 660 |
| 661 } } // namespace v8::internal | 661 } } // namespace v8::internal |
| 662 | 662 |
| 663 #endif // V8_TARGET_ARCH_ARM | 663 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |