Specialized tracing of Math.sin, as a proof of concept. Doesn't quite work due to regalloc mismatch, but close!

This commit is contained in:
2008-07-11 22:59:09 -04:00
parent f13b3435b6
commit 78e398529d
3 changed files with 52 additions and 16 deletions

View File

@@ -125,6 +125,14 @@ int32 FASTCALL builtin_doubleToUint32(jsdouble d)
return js_DoubleToECMAUint32(d);
}
jsdouble FASTCALL builtin_Math_dot_sin(jsdouble d)
{
#ifdef DEBUG_shaver
fprintf(stderr, "inside Math.sin helper\n");
#endif
return sin(d);
}
#define LO ARGSIZE_LO
#define F ARGSIZE_F
#define Q ARGSIZE_Q