Why not reusing oop in static methods ?

Ulf Zibis Ulf.Zibis at gmx.de
Wed Dec 23 01:23:58 PST 2009


In dissassembly of a static method I see following code:

  ...
  0x00baa8db: mov    $0x188,%ebp
  0x00baa8e0: mov    0x142b58d8(%ebp),%edi  ;*getstatic c2bIndex
  ...
  0x00baa8ff: mov    $0x190,%ebx
  0x00baa904: mov    0x142b58d8(%ebx),%ebp  ;*getstatic c2b
  ...
  0x00baa979: mov    $0x198,%ebp
  0x00baa97e: mov    0x142b58d8(%ebp),%ebp  ;*getstatic planeOffsets
  ...

Why not reusing oop <0x142b58d8> ? :

  ...
  0x00baa8db: mov    $0x142b58d8,%ebp
  0x00baa8e0: mov    0x188(%ebp),%edi  ;*getstatic c2bIndex
  ...
  0x00baa8ff: mov    0x190(%ebp),%ebx  ;*getstatic c2b
  ...
  0x00baa974: mov    0x198(%ebp),%ebp  ;*getstatic planeOffsets
  ...



-Ulf




More information about the hotspot-compiler-dev mailing list