| 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 21 matching lines...) Expand all Loading... |
| 32 #include "codegen.h" | 32 #include "codegen.h" |
| 33 #include "macro-assembler.h" | 33 #include "macro-assembler.h" |
| 34 #include "simulator-mips.h" | 34 #include "simulator-mips.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) { | 40 UnaryMathFunction CreateTranscendentalFunction(TranscendentalCache::Type type) { |
| 41 switch (type) { | 41 switch (type) { |
| 42 case TranscendentalCache::SIN: return &sin; | |
| 43 case TranscendentalCache::COS: return &cos; | |
| 44 case TranscendentalCache::TAN: return &tan; | |
| 45 case TranscendentalCache::LOG: return &log; | 42 case TranscendentalCache::LOG: return &log; |
| 46 default: UNIMPLEMENTED(); | 43 default: UNIMPLEMENTED(); |
| 47 } | 44 } |
| 48 return NULL; | 45 return NULL; |
| 49 } | 46 } |
| 50 | 47 |
| 51 | 48 |
| 52 #define __ masm. | 49 #define __ masm. |
| 53 | 50 |
| 54 | 51 |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 patcher.masm()->nop(); // Pad the empty space. | 673 patcher.masm()->nop(); // Pad the empty space. |
| 677 } | 674 } |
| 678 } | 675 } |
| 679 | 676 |
| 680 | 677 |
| 681 #undef __ | 678 #undef __ |
| 682 | 679 |
| 683 } } // namespace v8::internal | 680 } } // namespace v8::internal |
| 684 | 681 |
| 685 #endif // V8_TARGET_ARCH_MIPS | 682 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |