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 19 matching lines...) Expand all Loading... |
30 #if V8_TARGET_ARCH_ARM | 30 #if V8_TARGET_ARCH_ARM |
31 | 31 |
32 #include "codegen.h" | 32 #include "codegen.h" |
33 #include "macro-assembler.h" | 33 #include "macro-assembler.h" |
34 #include "simulator-arm.h" | 34 #include "simulator-arm.h" |
35 | 35 |
36 namespace v8 { | 36 namespace v8 { |
37 namespace internal { | 37 namespace internal { |
38 | 38 |
39 | 39 |
40 UnaryMathFunction CreateTranscendentalFunction(TranscendentalCache::Type type) { | |
41 switch (type) { | |
42 case TranscendentalCache::LOG: return &log; | |
43 default: UNIMPLEMENTED(); | |
44 } | |
45 return NULL; | |
46 } | |
47 | |
48 | |
49 #define __ masm. | 40 #define __ masm. |
50 | 41 |
51 | 42 |
52 #if defined(USE_SIMULATOR) | 43 #if defined(USE_SIMULATOR) |
53 byte* fast_exp_arm_machine_code = NULL; | 44 byte* fast_exp_arm_machine_code = NULL; |
54 double fast_exp_simulator(double x) { | 45 double fast_exp_simulator(double x) { |
55 return Simulator::current(Isolate::Current())->CallFPReturnsDouble( | 46 return Simulator::current(Isolate::Current())->CallFPReturnsDouble( |
56 fast_exp_arm_machine_code, x, 0); | 47 fast_exp_arm_machine_code, x, 0); |
57 } | 48 } |
58 #endif | 49 #endif |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 patcher.masm()->add(r0, pc, Operand(-8)); | 888 patcher.masm()->add(r0, pc, Operand(-8)); |
898 patcher.masm()->ldr(pc, MemOperand(pc, -4)); | 889 patcher.masm()->ldr(pc, MemOperand(pc, -4)); |
899 patcher.masm()->emit_code_stub_address(stub); | 890 patcher.masm()->emit_code_stub_address(stub); |
900 } | 891 } |
901 } | 892 } |
902 | 893 |
903 | 894 |
904 } } // namespace v8::internal | 895 } } // namespace v8::internal |
905 | 896 |
906 #endif // V8_TARGET_ARCH_ARM | 897 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |