示例#1
0
文件: Types.cs 项目: reshadi2/mcjs
 static DValue()
 {
   Initializer.Run(typeof(Types.DValue), typeof(mdr.DValue));
   Set = new MethodCache1(TypeOf, "Set", false);
   GetValueType = TypeOf.GetProperty("ValueType").GetGetMethod();
 }
示例#2
0
文件: Types.cs 项目: reshadi2/mcjs
 static JSSpeculationFailedException()
 {
   Initializer.Run(typeof(Types.JSSpeculationFailedException), typeof(mjr.JSSpeculationFailedException));
   Throw = new MethodCache1(TypeOf, "Throw", false);
 }
示例#3
0
文件: Types.cs 项目: reshadi2/mcjs
 static Operations()
 {
   //Initializer.Run(typeof(Types.Operations), typeof(mjr.Operations));
   Assign = new MethodCache1(typeof(mjr.Operations.Assign), "Run");
 }
示例#4
0
文件: Types.cs 项目: reshadi2/mcjs
        static Unary()
        {
          //Initializer.Run(typeof(Types.Operations.Unary), typeof(mjr.Operations.Unary));
          Delete = new MethodCache1(typeof(mjr.Operations.Unary.Delete), "Run");
          DeleteProperty = new MethodCache2(typeof(mjr.Operations.Unary.DeleteProperty), "Run");
          DeleteVariable = new MethodCache2(typeof(mjr.Operations.Unary.DeleteVariable), "Run");
          Void = new MethodCache1(typeof(mjr.Operations.Unary.Void), "Run");
          Typeof = new MethodCache1(typeof(mjr.Operations.Unary.Typeof), "Run");
          Positive = new MethodCache1(typeof(mjr.Operations.Unary.Positive), "Run");
          Negative = new MethodCache1(typeof(mjr.Operations.Unary.Negative), "Run");
          BitwiseNot = new MethodCache1(typeof(mjr.Operations.Unary.BitwiseNot), "Run");
          LogicalNot = new MethodCache1(typeof(mjr.Operations.Unary.LogicalNot), "Run");

        }
示例#5
0
文件: Types.cs 项目: reshadi2/mcjs
 static Convert()
 {
   //Initializer.Run(typeof(Types.Operations.Convert), typeof(mjr.Operations.Convert));
   ToPrimitive = new MethodCache1(typeof(mjr.Operations.Convert.ToPrimitive), "Run");
   ToBoolean = new MethodCache1(typeof(mjr.Operations.Convert.ToBoolean), "Run");
   ToNumber = new MethodCache1(typeof(mjr.Operations.Convert.ToNumber), "Run");
   ToDouble = new MethodCache1(typeof(mjr.Operations.Convert.ToDouble), "Run");
   ToInt32 = new MethodCache1(typeof(mjr.Operations.Convert.ToInt32), "Run");
   ToUInt32 = new MethodCache1(typeof(mjr.Operations.Convert.ToUInt32), "Run");
   ToString = new MethodCache1(typeof(mjr.Operations.Convert.ToString), "Run");
   ToObject = new MethodCache1(typeof(mjr.Operations.Convert.ToObject), "Run");
   ToFunction = new MethodCache1(typeof(mjr.Operations.Convert.ToFunction), "Run");
 }
示例#6
0
文件: Types.cs 项目: reshadi2/mcjs
      static DObject()
      {
        Initializer.Run(typeof(DObject), typeof(mdr.DObject));

        GetMap = TypeOf.GetProperty("Map").GetGetMethod();
        SetMap = TypeOf.GetProperty("Map").GetSetMethod();
        GetPrototype = TypeOf.GetProperty("Prototype").GetGetMethod();
        GetTypeOf = TypeOf.GetMethod("GetTypeOf");

        GetPropertyDescriptor = new MethodCache1(TypeOf, "GetPropertyDescriptor");
        AddPropertyDescriptor = new MethodCache1(TypeOf, "AddPropertyDescriptor");
        DeletePropertyDescriptor = new MethodCache1(TypeOf, "DeletePropertyDescriptor");
      }