Label Class Reference

#include <assembler.hpp>

Inheritance diagram for Label:

Inheritance graph
[legend]
Collaboration diagram for Label:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool is_bound () const
bool is_unbound () const
bool is_unused () const
 Label ()
 ~Label ()

Private Member Functions

int pos () const
void bind_to (int pos)
void link_to (int pos)
void unuse ()

Private Attributes

int _pos

Friends

class Assembler
class MacroAssembler
class Displacement

Detailed Description

Definition at line 68 of file assembler.hpp.


Constructor & Destructor Documentation

Label::Label (  )  [inline]

Definition at line 94 of file assembler.hpp.

Label::~Label (  )  [inline]

Definition at line 95 of file assembler.hpp.

References assert, and is_unbound().

Here is the call graph for this function:


Member Function Documentation

void Label::bind_to ( int  pos  )  [inline, private]

Definition at line 85 of file assembler.hpp.

References _pos, and assert.

bool Label::is_bound (  )  const [inline]

Definition at line 90 of file assembler.hpp.

References _pos.

bool Label::is_unbound (  )  const [inline]

Definition at line 91 of file assembler.hpp.

References _pos.

Referenced by Assembler::bind(), Assembler::finalize(), Assembler::jmp(), Assembler::link_to(), and ~Label().

bool Label::is_unused (  )  const [inline]

Definition at line 92 of file assembler.hpp.

References _pos.

void Label::link_to ( int  pos  )  [inline, private]

Definition at line 86 of file assembler.hpp.

References _pos, and assert.

int Label::pos (  )  const [inline, private]

Definition at line 78 of file assembler.hpp.

References _pos, and ShouldNotReachHere.

void Label::unuse (  )  [inline, private]

Definition at line 87 of file assembler.hpp.

References _pos.

Referenced by Assembler::link_to().


Friends And Related Function Documentation

friend class Assembler [friend]

Definition at line 97 of file assembler.hpp.

friend class Displacement [friend]

Definition at line 99 of file assembler.hpp.

friend class MacroAssembler [friend]

Definition at line 98 of file assembler.hpp.


Member Data Documentation

int Label::_pos [private]

Definition at line 76 of file assembler.hpp.

Referenced by bind_to(), is_bound(), is_unbound(), is_unused(), link_to(), pos(), and unuse().


The documentation for this class was generated from the following file:
Generated on Mon Oct 9 14:04:55 2006 for Strongtalk VM by  doxygen 1.4.7