[Mono-devel-list] [PATCH] Faster array bounds checking

Ben Maurer 05mauben at hawken.edu
Mon Apr 5 13:46:39 EDT 2004


* inssel-x86.brg:
  MONO_EMIT_NEW_X86_COMPARE_MEMBASE_(REG/IMM) -- emit the opcode cmp
[membase], (reg/imm)
  MONO_EMIT_BOUNDS_CHECK[_IMM] -- override the generic version with an
x86 specific version.
* inssel.brg:
  MONO_EMIT_BOUNDS_CHECK[_IMM] -- a new macro that checks for array
bounds. A arch can override this if it is able to provide a version
faster than the default.
  OP_GETCHR, CEE_LDELEMA -- use the above macro.

>>> Miguel de Icaza <miguel at ximian.com> 04/05/04 13:17 PM >>>
Hello Ben,

> The attached patch makes mini use the compare reg,membase operation
when
> it is doing array bounds checking. so, rather than:

As usual, you *must* provide a ChangeLog entry for your changes.

Do not even wait for me to ask for the ChangeLog entry, you are only
adding latency to the approval process.

Miguel




More information about the Mono-devel-list mailing list