Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  


This is the verbatim text of the trapdoors.h include file.
/* Sun-$Revision: 23.2 $ */

/* Copyright 1992-9 Sun Microsystems, Inc. and Stanford University.
   See the LICENSE file for license information. */

# pragma interface

// Some machines (e.g. PPC) place a limit on fast branch spans
// This causes problems for backpatched calls which are normally
// short (within the zone) but are sometimes longer (e.g. SendMessage_stub)
// So, we put long branches to the stubs in the zone (the TRAPDOORS) and
// use short branches to the trapdoors in the nmethods.

// -- dmu 6/99

class Trapdoors: public CHeapObj {
  Trapdoors(pc_t start_of_code, int32 code_size); // make trapdoors, put code at start_of_code
  int32 trapdoor_bytes(); // size of trapdoor code
  // stub addresses (first inst addr)
  pc_t   SendMessage_stub_td(Location tmp = IllegalLocation);
  pc_t SendDIMessage_stub_td(Location tmp = IllegalLocation);
  pc_t     Recompile_stub_td(Location tmp = IllegalLocation);
  pc_t   DIRecompile_stub_td(Location tmp = IllegalLocation);
  pc_t  follow_trapdoors(pc_t); // if arg is trapdoor, return its destination
  # include "_trapdoors_pd.h.incl"

Generated at Tue Jun 27 12:11:06 2000 for SelfVM by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999