diff options
author | jfrijters <jfrijters> | 2013-02-24 10:38:46 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2013-02-24 10:38:46 +0400 |
commit | fecbee25fdf5bf5223249f755f40138ae48edc92 (patch) | |
tree | 785b0f61ea5f53a62b6415a15ec084a496138af9 | |
parent | 005ef39c086b78e4510d37a3cbeacfe881509003 (diff) |
Removed unnecessary parameter.
-rw-r--r-- | runtime/compiler.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/runtime/compiler.cs b/runtime/compiler.cs index a618649c..82c081a0 100644 --- a/runtime/compiler.cs +++ b/runtime/compiler.cs @@ -3109,7 +3109,7 @@ sealed class Compiler ClassFile.ConstantPoolItemMI cpiMI; if (mw == null && (cpiMI = mh.MemberConstantPoolItem as ClassFile.ConstantPoolItemMI) != null) { - mw = new DynamicMethodWrapper(compiler.context, compiler.clazz, cpiMI, Modifiers.Public | Modifiers.Static); + mw = new DynamicMethodWrapper(compiler.context, cpiMI, Modifiers.Public | Modifiers.Static); } if (mw == null || !mw.IsStatic) { @@ -3878,14 +3878,12 @@ sealed class Compiler private sealed class DynamicMethodWrapper : MethodWrapper { private readonly DynamicTypeWrapper.FinishContext context; - private readonly TypeWrapper wrapper; private readonly ClassFile.ConstantPoolItemMI cpi; - internal DynamicMethodWrapper(DynamicTypeWrapper.FinishContext context, TypeWrapper wrapper, ClassFile.ConstantPoolItemMI cpi, Modifiers modifiers) - : base(wrapper, cpi.Name, cpi.Signature, null, cpi.GetRetType(), cpi.GetArgTypes(), modifiers, MemberFlags.None) + internal DynamicMethodWrapper(DynamicTypeWrapper.FinishContext context, ClassFile.ConstantPoolItemMI cpi, Modifiers modifiers) + : base(cpi.GetClassType(), cpi.Name, cpi.Signature, null, cpi.GetRetType(), cpi.GetArgTypes(), modifiers, MemberFlags.None) { this.context = context; - this.wrapper = wrapper; this.cpi = cpi; } @@ -3970,7 +3968,7 @@ sealed class Compiler case NormalizedByteCode.__dynamic_invokestatic: case NormalizedByteCode.__dynamic_invokevirtual: case NormalizedByteCode.__dynamic_invokespecial: - return new DynamicMethodWrapper(context, clazz, cpi, Modifiers.Public); + return new DynamicMethodWrapper(context, cpi, Modifiers.Public); case NormalizedByteCode.__methodhandle_invoke: return new MethodHandleMethodWrapper(context, clazz, cpi, false); case NormalizedByteCode.__methodhandle_invokeexact: @@ -3980,7 +3978,7 @@ sealed class Compiler } if(mw.IsDynamicOnly) { - return new DynamicMethodWrapper(context, clazz, cpi, mw.Modifiers); + return new DynamicMethodWrapper(context, cpi, mw.Modifiers); } return mw; } |