Index: src/ia32/codegen-ia32.h |
=================================================================== |
--- src/ia32/codegen-ia32.h (revision 2163) |
+++ src/ia32/codegen-ia32.h (working copy) |
@@ -521,6 +521,12 @@ |
// Fast support for Math.random(). |
void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); |
+ // Fast support for Math.sin and Math.cos. |
+ enum MathOp { SIN, COS }; |
+ void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); |
+ inline void GenerateMathSin(ZoneList<Expression*>* args); |
+ inline void GenerateMathCos(ZoneList<Expression*>* args); |
+ |
// Methods and constants for fast case switch statement support. |
// |
// Only allow fast-case switch if the range of labels is at most |