[Mono-bugs] [Bug 70465][Wis] New - Arrray.get_Length not geting made intrinsic
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 11 Dec 2004 15:37:15 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=70465
--- shadow/70465 2004-12-11 15:37:15.000000000 -0500
+++ shadow/70465.tmp.19697 2004-12-11 15:37:15.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 70465
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: JIT
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Arrray.get_Length not geting made intrinsic
+
+If I run mono -v -v -v on
+using System;
+
+class X {
+ static void Main () {
+ Array arr = new int [33];
+ int x = arr.Length;
+ }
+
+}
+
+I get
+
+ (stind.ref regvar[%edi] iconst[0])
+ (stind.i4 regoffset[-0xc(%ebp)] iconst[0])
+ (outarg iconst[33])
+ (outarg iconst[135944272])
+ (stind.ref regvar[%ebx] call)
+ (stind.ref regoffset[-0x10(%ebp)] (ldind.ref regvar[%ebx]))
+ (stind.ref regvar[%edi] (ldind.ref regoffset[-0x10(%ebp)]))
+ (stind.i4 regvar[%ebx] (callvirt[get_Length]))
+ (stind.i4 regoffset[-0xc(%ebp)] (ldind.i4 regvar[%ebx]))
+
+However, we should have converted get_Length to be an intrinsic. I am not
+sure why this is not actually happening.