In metadata:
commit27248d2f9f289b8906d329ad60d7c8236da4f90a
authorBen Maurer <benm@mono-cvs.ximian.com>
Tue, 21 Dec 2004 03:49:09 +0000 (21 03:49 -0000)
committerBen Maurer <benm@mono-cvs.ximian.com>
Tue, 21 Dec 2004 03:49:09 +0000 (21 03:49 -0000)
tree01724dffcaf6f55fa3c446f5093a155c72b2d5f7
parentd9cc97d3b4ec2fcd62016856cbd1084617114a9e
In metadata:
2004-12-20  Ben Maurer  <bmaurer@ximian.com>

* icall.c (ves_icall_System_Object_GetHashCode): There was no need
to do key & 0x7fffffff. Hashtable already does this. It just
results in longer code.

In mini:
* mini-ops.h (OP_GETHASHCODE): New op.

* inssel.brg (OP_GETHASHCODE): Emit code for the new opcode

* mini.c (mini_get_inst_for_method): Create the intrinsic hash
operation.

For a microbenchmark, this reduces the cost of Hashtable.get_Item
by 25%.

svn path=/trunk/mono/; revision=38019
mono/metadata/ChangeLog
mono/metadata/icall.c
mono/mini/ChangeLog
mono/mini/inssel.brg
mono/mini/mini-ops.h
mono/mini/mini.c