- my $thunkGenerator = "0";
- if ($key eq "charCodeAt") {
- $thunkGenerator = "charCodeAtThunkGenerator";
- }
- if ($key eq "charAt") {
- $thunkGenerator = "charAtThunkGenerator";
- }
- if ($key eq "sqrt") {
- $thunkGenerator = "sqrtThunkGenerator";
+
+ my $intrinsic = "NoIntrinsic";
+ $intrinsic = "CharCodeAtIntrinsic" if ($key eq "charCodeAt");
+ $intrinsic = "CharAtIntrinsic" if ($key eq "charAt");
+ $intrinsic = "FromCharCodeIntrinsic" if ($key eq "fromCharCode");
+ if ($name eq "mathTable") {
+ $intrinsic = "MinIntrinsic" if ($key eq "min");
+ $intrinsic = "MaxIntrinsic" if ($key eq "max");
+ $intrinsic = "SqrtIntrinsic" if ($key eq "sqrt");
+ $intrinsic = "PowIntrinsic" if ($key eq "pow");
+ $intrinsic = "AbsIntrinsic" if ($key eq "abs");
+ $intrinsic = "FloorIntrinsic" if ($key eq "floor");
+ $intrinsic = "CeilIntrinsic" if ($key eq "ceil");
+ $intrinsic = "RoundIntrinsic" if ($key eq "round");
+ $intrinsic = "ExpIntrinsic" if ($key eq "exp");
+ $intrinsic = "LogIntrinsic" if ($key eq "log");