Index: src/arm/codegen-arm.h |
=================================================================== |
--- src/arm/codegen-arm.h (revision 2163) |
+++ src/arm/codegen-arm.h (working copy) |
@@ -352,6 +352,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 |