Index: src/codegen.h |
diff --git a/src/codegen.h b/src/codegen.h |
index 5360d3ef3caae22c24ccbdda28488770a8823d97..28a3006e1cc2e198bd6ce0152dad89fac5632e96 100644 |
--- a/src/codegen.h |
+++ b/src/codegen.h |
@@ -84,6 +84,15 @@ enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; |
namespace v8 { |
namespace internal { |
+// Results of the library implementation of transcendental functions may differ |
+// from the one we use in our generated code. Therefore we use the same |
+// generated code both in runtime and compiled code. |
+typedef double (*TranscendentalFunction)(double x); |
+ |
+TranscendentalFunction CreateTranscendentalFunction( |
+ TranscendentalCache::Type type); |
+ |
+ |
class ElementsTransitionGenerator : public AllStatic { |
public: |
static void GenerateSmiOnlyToObject(MacroAssembler* masm); |