Exemplo n.º 1
0
 public static void Init()
 {
     JSIntrinsicImp.Add(mdr.ValueTypes.Boolean, "@_IsSmi", (ilGen, method) =>
     {
         ilGen.Ldc_I4(false);
     });
     JSIntrinsicImp.Add(mdr.ValueTypes.Double, "TO_NUMBER", (cg, method) =>
     {
         System.Diagnostics.Debug.Assert(method.Arguments.Count == 1, "invalid number of arguments");
         cg.ToDouble(method.Arguments[0]);
     });
 }
Exemplo n.º 2
0
 internal static JSIntrinsicImp Add(JSIntrinsicImp intrinsic)
 {
     _funcs[intrinsic.Name] = intrinsic;
     return(intrinsic);
 }
Exemplo n.º 3
0
 internal static JSIntrinsicImp Add(JSIntrinsicImp intrinsic)
 {
     _funcs[intrinsic.Name] = intrinsic;
     return intrinsic;
 }