[Mono-bugs] [Bug 72040][Maj] New - Incorrect code generation of numeric literals and functions arguments.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 1 Feb 2005 01:14:22 -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 cesar@ciencias.unam.mx.

http://bugzilla.ximian.com/show_bug.cgi?id=72040

--- shadow/72040	2005-02-01 01:14:22.000000000 -0500
+++ shadow/72040.tmp.9530	2005-02-01 01:14:22.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 72040
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: JScript
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cesar@ciencias.unam.mx               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrect code generation of numeric literals and functions arguments.
+
+By default numeric literals get boxed as Double's. When used aside a method
+call that expects a different type as input argument the invocation fails.
+
+For an example see test case.
+
+In that test case, isFinite's signature is:
+
+[Microsoft.JScript]Microsoft.JScript.GlobalObject::isFinite(float64)
+
+it expects a float64 as argument.
+
+As the numeric literal that receives as parameter is boxed to Double the
+invocation causes the runtime to fail. jsc generates a conversion operation
+(conv.r8) instead of the boxing.
+
+We must ensure that every method argument get converted to the proper type
+corresponding to the formal parameter.