Index: src/mips/codegen-mips.cc |
diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc |
index d7bddaf1252f6b9b72ed9c7760ed1c2c4525cdd4..8cbb771952d87531a3f014da9d2f2993af27c522 100644 |
--- a/src/mips/codegen-mips.cc |
+++ b/src/mips/codegen-mips.cc |
@@ -37,6 +37,19 @@ namespace internal { |
#define __ ACCESS_MASM(masm) |
+TranscendentalFunction CreateTranscendentalFunction( |
+ TranscendentalCache::Type type) { |
+ switch (type) { |
+ case TranscendentalCache::SIN: return &sin; |
+ case TranscendentalCache::COS: return &cos; |
+ case TranscendentalCache::TAN: return &tan; |
+ case TranscendentalCache::LOG: return &log; |
+ default: UNIMPLEMENTED(); |
+ } |
+ return NULL; |
+} |
+ |
+ |
// ------------------------------------------------------------------------- |
// Platform-specific RuntimeCallHelper functions. |