All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.IR.QuadSSA.MONITORENTER
java.lang.Object
|
+----harpoon.IR.QuadSSA.Quad
|
+----harpoon.IR.QuadSSA.MONITORENTER
- public class MONITORENTER
- extends Quad
MONITORENTER
acquires the monitor lock of a particular
object. Note that these java "monitors" are really a flavor of
recursive lock; see the
Java
hall of shame for more details. The MONITORENTER
quad works the same way as the java monitorenter
bytecode.
See the JVM spec for details.
- Version:
- $Id: MONITORENTER.java,v 1.2 1998/10/11 02:37:57 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
-
lock
- The object containing the monitor to be locked.
-
MONITORENTER(HCodeElement, Temp)
- Creates a
MONITORENTER
.
-
renameUses(TempMap)
- Rename all used variables in this Quad according to a mapping.
-
toString()
- Returns a human-readable representation.
-
use()
- Returns the Temp used by this Quad.
-
visit(QuadVisitor)
- Accept a visitor.
lock
public Temp lock
- The object containing the monitor to be locked.
MONITORENTER
public MONITORENTER(HCodeElement source,
Temp lock)
- Creates a
MONITORENTER
. Code after this point and
before a MONITOREXIT
with the same lock
reference is protected by a monitor.
use
public Temp[] use()
- Returns the Temp used by this Quad.
- Returns:
- the
lock
field.
- Overrides:
- use in class Quad
renameUses
public void renameUses(TempMap tm)
- Rename all used variables in this Quad according to a mapping.
- Overrides:
- renameUses in class Quad
visit
public void visit(QuadVisitor v)
- Accept a visitor.
- Overrides:
- visit in class Quad
toString
public String toString()
- Returns a human-readable representation.
- Overrides:
- toString in class Quad
All Packages Class Hierarchy This Package Previous Next Index