| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 return NULL; | 48 return NULL; |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 #define __ masm. | 52 #define __ masm. |
| 53 | 53 |
| 54 | 54 |
| 55 #if defined(USE_SIMULATOR) | 55 #if defined(USE_SIMULATOR) |
| 56 byte* fast_exp_arm_machine_code = NULL; | 56 byte* fast_exp_arm_machine_code = NULL; |
| 57 double fast_exp_simulator(double x) { | 57 double fast_exp_simulator(double x) { |
| 58 return Simulator::current(Isolate::Current())->CallFP( | 58 return Simulator::current(Isolate::Current())->CallFPReturnsDouble( |
| 59 fast_exp_arm_machine_code, x, 0); | 59 fast_exp_arm_machine_code, x, 0); |
| 60 } | 60 } |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 | 63 |
| 64 UnaryMathFunction CreateExpFunction() { | 64 UnaryMathFunction CreateExpFunction() { |
| 65 if (!FLAG_fast_math) return &exp; | 65 if (!FLAG_fast_math) return &exp; |
| 66 size_t actual_size; | 66 size_t actual_size; |
| 67 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true)); | 67 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true)); |
| 68 if (buffer == NULL) return &exp; | 68 if (buffer == NULL) return &exp; |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 patcher.masm()->add(r0, pc, Operand(-8)); | 885 patcher.masm()->add(r0, pc, Operand(-8)); |
| 886 patcher.masm()->ldr(pc, MemOperand(pc, -4)); | 886 patcher.masm()->ldr(pc, MemOperand(pc, -4)); |
| 887 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 887 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); |
| 888 } | 888 } |
| 889 } | 889 } |
| 890 | 890 |
| 891 | 891 |
| 892 } } // namespace v8::internal | 892 } } // namespace v8::internal |
| 893 | 893 |
| 894 #endif // V8_TARGET_ARCH_ARM | 894 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |