From: <ls...@us...> - 2008-08-14 14:28:14
|
Revision: 4435 http://jnode.svn.sourceforge.net/jnode/?rev=4435&view=rev Author: lsantha Date: 2008-08-14 14:28:09 +0000 (Thu, 14 Aug 2008) Log Message: ----------- Added typecheck to do item to wastore. Modified Paths: -------------- trunk/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java Modified: trunk/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java =================================================================== --- trunk/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java 2008-08-14 09:51:08 UTC (rev 4434) +++ trunk/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java 2008-08-14 14:28:09 UTC (rev 4435) @@ -4289,6 +4289,8 @@ // Verify checkBounds(ref, idx); + //todo spec issue: add type compatibility check (elemType <- valueType), throw ArrayStoreException + // Store if (idx.isConstant()) { final int offset = idx.getValue() * scale; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |