primitive_desc Class Reference

#include <prim.hpp>

List of all members.

Public Member Functions

char * name () const
fntype fn () const
int number_of_parameters () const
PrimitiveGroup group () const
bool is_special_prim () const
bool can_scavenge () const
bool can_perform_NLR () const
bool can_fail () const
bool can_invoke_delta () const
bool can_be_constant_folded () const
bool has_receiver () const
bool is_internal () const
bool needs_delta_fp_code () const
bool can_walk_stack () const
symbolOop selector () const
oop eval (oop *parameters)
char * parameter_type (int index) const
char * return_type () const
char * error (int index) const
int compare (char *str, int len)
void print ()
void verify ()
void error (char *msg)

Public Attributes

char * _name
fntype _fn
int _flags
char ** _types
char ** _errors


Detailed Description

Definition at line 69 of file prim.hpp.


Member Function Documentation

bool primitive_desc::can_be_constant_folded (  )  const [inline]

Definition at line 98 of file prim.hpp.

References _flags, and isSet.

Referenced by print(), and verify().

bool primitive_desc::can_fail (  )  const [inline]

Definition at line 94 of file prim.hpp.

References _flags, and isSet.

Referenced by print().

bool primitive_desc::can_invoke_delta (  )  const [inline]

Definition at line 97 of file prim.hpp.

References can_perform_NLR().

Referenced by can_walk_stack(), print(), and verify().

Here is the call graph for this function:

bool primitive_desc::can_perform_NLR (  )  const [inline]

Definition at line 93 of file prim.hpp.

References _flags, and isSet.

Referenced by can_invoke_delta(), can_walk_stack(), print(), and verify().

bool primitive_desc::can_scavenge (  )  const [inline]

Definition at line 92 of file prim.hpp.

References _flags, and isSet.

Referenced by can_walk_stack(), print(), and verify().

bool primitive_desc::can_walk_stack (  )  const

Definition at line 100 of file prim.cpp.

References can_invoke_delta(), can_perform_NLR(), and can_scavenge().

Referenced by print(), and verify().

Here is the call graph for this function:

int primitive_desc::compare ( char *  str,
int  len 
)

Definition at line 201 of file prim.cpp.

References min(), and name().

Referenced by primitives::lookup().

Here is the call graph for this function:

void primitive_desc::error ( char *  msg  ) 

Definition at line 180 of file prim.cpp.

References error(), and print().

Here is the call graph for this function:

char* primitive_desc::error ( int  index  )  const [inline]

Definition at line 127 of file prim.hpp.

References _errors.

Referenced by error(), and verify().

oop primitive_desc::eval ( oop parameters  ) 

Definition at line 48 of file prim.cpp.

References _fn, number_of_parameters(), and ShouldNotReachHere.

Here is the call graph for this function:

fntype primitive_desc::fn (  )  const [inline]

Definition at line 84 of file prim.hpp.

References _fn.

PrimitiveGroup primitive_desc::group (  )  const [inline]

Definition at line 90 of file prim.hpp.

References _flags, and get_unsigned_bitfield().

Referenced by is_special_prim(), print(), and verify().

Here is the call graph for this function:

bool primitive_desc::has_receiver (  )  const [inline]

Definition at line 99 of file prim.hpp.

References _flags, and isSet.

Referenced by MethodIterator::dispatch(), and print().

bool primitive_desc::is_internal (  )  const [inline]

Definition at line 100 of file prim.hpp.

References _flags, and isSet.

Referenced by print().

bool primitive_desc::is_special_prim (  )  const [inline]

Definition at line 91 of file prim.hpp.

References group(), and NormalPrimitive.

Here is the call graph for this function:

char* primitive_desc::name (  )  const [inline]

Definition at line 81 of file prim.hpp.

References _name.

Referenced by compare(), prim_init(), MethodPrinterClosure::primitive_call_node(), print(), and selector().

bool primitive_desc::needs_delta_fp_code (  )  const [inline]

Definition at line 101 of file prim.hpp.

References _flags, and isSet.

Referenced by print().

int primitive_desc::number_of_parameters (  )  const [inline]

Definition at line 87 of file prim.hpp.

References _flags, and get_unsigned_bitfield().

Referenced by eval(), parameter_type(), and print().

Here is the call graph for this function:

char * primitive_desc::parameter_type ( int  index  )  const

Definition at line 139 of file prim.cpp.

References _types, assert, and number_of_parameters().

Here is the call graph for this function:

void primitive_desc::print (  ) 

Definition at line 110 of file prim.cpp.

References BlockPrimitive, ByteArrayPrimitive, can_be_constant_folded(), can_fail(), can_invoke_delta(), can_perform_NLR(), can_scavenge(), can_walk_stack(), outputStream::cr(), DoubleByteArrayPrimitive, fatal, FloatArithmeticPrimitive, FloatComparisonPrimitive, group(), has_receiver(), IntArithmeticPrimitive, IntComparisonPrimitive, is_internal(), name(), needs_delta_fp_code(), NormalPrimitive, number_of_parameters(), ObjArrayPrimitive, outputStream::print(), and std.

Referenced by error().

Here is the call graph for this function:

char * primitive_desc::return_type (  )  const

Definition at line 145 of file prim.cpp.

References _types.

symbolOop primitive_desc::selector (  )  const

Definition at line 105 of file prim.cpp.

References name(), and oopFactory::new_symbol().

Referenced by PrimitiveCallNode::PrimitiveCallNode().

Here is the call graph for this function:

void primitive_desc::verify (  ) 

Definition at line 185 of file prim.cpp.

References BlockPrimitive, can_be_constant_folded(), can_invoke_delta(), can_perform_NLR(), can_scavenge(), can_walk_stack(), error(), and group().

Here is the call graph for this function:


Member Data Documentation

char** primitive_desc::_errors

Definition at line 77 of file prim.hpp.

Referenced by error().

int primitive_desc::_flags

Definition at line 73 of file prim.hpp.

Referenced by can_be_constant_folded(), can_fail(), can_perform_NLR(), can_scavenge(), group(), has_receiver(), is_internal(), needs_delta_fp_code(), and number_of_parameters().

fntype primitive_desc::_fn

Definition at line 72 of file prim.hpp.

Referenced by eval(), and fn().

char* primitive_desc::_name

Definition at line 71 of file prim.hpp.

Referenced by name().

char** primitive_desc::_types

Definition at line 74 of file prim.hpp.

Referenced by parameter_type(), and return_type().


The documentation for this class was generated from the following files:
Generated on Mon Oct 9 14:13:01 2006 for Strongtalk VM by  doxygen 1.4.7