behavior_prims.cpp File Reference

#include "incls/_precompiled.incl"
#include "incls/_behavior_prims.cpp.incl"

Include dependency graph for behavior_prims.cpp:

Go to the source code of this file.

Defines

#define ASSERT_RECEIVER   assert(receiver->is_klass(), "receiver must klass")

Functions

 PRIM_DECL_1 (behaviorPrimitives::allocate, oop receiver)
 PRIM_DECL_1 (behaviorPrimitives::superclass, oop receiver)
 PRIM_DECL_1 (behaviorPrimitives::superclass_of, oop klass)
 PRIM_DECL_1 (behaviorPrimitives::mixinOf, oop behavior)
 PRIM_DECL_1 (behaviorPrimitives::headerSize, oop behavior)
 PRIM_DECL_1 (behaviorPrimitives::nonIndexableSize, oop behavior)
 PRIM_DECL_1 (behaviorPrimitives::is_specialized_class, oop behavior)
 PRIM_DECL_1 (behaviorPrimitives::can_be_subclassed, oop behavior)
 PRIM_DECL_1 (behaviorPrimitives::can_have_instance_variables, oop behavior)
 PRIM_DECL_2 (behaviorPrimitives::classVariableAt, oop behavior, oop index)
 PRIM_DECL_1 (behaviorPrimitives::classVariables, oop behavior)
 PRIM_DECL_2 (behaviorPrimitives::printMethod, oop receiver, oop name)
 PRIM_DECL_2 (behaviorPrimitives::methodFor, oop receiver, oop selector)
 PRIM_DECL_1 (behaviorPrimitives::format, oop behavior)
 PRIM_DECL_1 (behaviorPrimitives::vm_type, oop behavior)
 PRIM_DECL_2 (behaviorPrimitives::is_class_of, oop receiver, oop obj)


Define Documentation

#define ASSERT_RECEIVER   assert(receiver->is_klass(), "receiver must klass")

Definition at line 31 of file behavior_prims.cpp.

Referenced by PRIM_DECL_1(), PRIM_DECL_2(), PRIM_DECL_3(), PRIM_DECL_4(), PRIM_DECL_5(), PRIM_DECL_6(), and PRIM_DECL_7().


Function Documentation

PRIM_DECL_1 ( behaviorPrimitives::vm_type  ,
oop  behavior 
)

Definition at line 325 of file behavior_prims.cpp.

References Klass::association_klass, Klass::blockClosure_klass, Klass::byteArray_klass, Klass::context_klass, Klass::double_klass, Klass::doubleByteArray_klass, Klass::doubleValueArray_klass, fatal, Klass::format(), oopDesc::is_klass(), Klass::klass_klass, klassOopDesc::klass_part(), markSymbol(), Klass::mem_klass, Klass::method_klass, Klass::mixin_klass, Klass::objArray_klass, Klass::process_klass, PROLOGUE_1, Klass::proxy_klass, Klass::smi_klass, Klass::symbol_klass, Klass::vframe_klass, and Klass::weakArray_klass.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::format  ,
oop  behavior 
)

Definition at line 316 of file behavior_prims.cpp.

References oopDesc::is_klass(), markSymbol(), Klass::name_from_format(), oopFactory::new_symbol(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::classVariables  ,
oop  behavior 
)

Definition at line 115 of file behavior_prims.cpp.

References Klass::classVars(), oopDesc::is_klass(), klassOopDesc::klass_part(), markSymbol(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::can_have_instance_variables  ,
oop  behavior 
)

Definition at line 92 of file behavior_prims.cpp.

References Klass::can_have_instance_variables(), falseObj, oopDesc::is_klass(), klassOopDesc::klass_part(), markSymbol(), PROLOGUE_1, and trueObj.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::can_be_subclassed  ,
oop  behavior 
)

Definition at line 84 of file behavior_prims.cpp.

References Klass::can_be_subclassed(), falseObj, oopDesc::is_klass(), klassOopDesc::klass_part(), markSymbol(), PROLOGUE_1, and trueObj.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::is_specialized_class  ,
oop  behavior 
)

Definition at line 76 of file behavior_prims.cpp.

References falseObj, oopDesc::is_klass(), Klass::is_specialized_class(), klassOopDesc::klass_part(), markSymbol(), PROLOGUE_1, and trueObj.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::nonIndexableSize  ,
oop  behavior 
)

Definition at line 68 of file behavior_prims.cpp.

References as_smiOop(), oopDesc::is_klass(), markSymbol(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::headerSize  ,
oop  behavior 
)

Definition at line 60 of file behavior_prims.cpp.

References as_smiOop(), oopDesc::is_klass(), markSymbol(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::mixinOf  ,
oop  behavior 
)

Definition at line 52 of file behavior_prims.cpp.

References oopDesc::is_klass(), klassOopDesc::klass_part(), markSymbol(), Klass::mixin(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::superclass_of  ,
oop  klass 
)

Definition at line 45 of file behavior_prims.cpp.

References oopDesc::is_klass(), klassOopDesc::klass_part(), markSymbol(), PROLOGUE_1, and Klass::superKlass().

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::superclass  ,
oop  receiver 
)

Definition at line 39 of file behavior_prims.cpp.

References ASSERT_RECEIVER, klassOopDesc::klass_part(), PROLOGUE_1, and Klass::superKlass().

Here is the call graph for this function:

PRIM_DECL_1 ( behaviorPrimitives::allocate  ,
oop  receiver 
)

Definition at line 33 of file behavior_prims.cpp.

References ASSERT_RECEIVER, oopDesc::primitive_allocate(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_2 ( behaviorPrimitives::is_class_of  ,
oop  receiver,
oop  obj 
)

Definition at line 358 of file behavior_prims.cpp.

References ASSERT_RECEIVER, falseObj, oopDesc::klass(), PROLOGUE_2, and trueObj.

Here is the call graph for this function:

PRIM_DECL_2 ( behaviorPrimitives::methodFor  ,
oop  receiver,
oop  selector 
)

Definition at line 304 of file behavior_prims.cpp.

References ASSERT_RECEIVER, oopDesc::is_symbol(), klassOopDesc::klass_part(), Klass::lookup(), markSymbol(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( behaviorPrimitives::printMethod  ,
oop  receiver,
oop  name 
)

Definition at line 124 of file behavior_prims.cpp.

References ASSERT_RECEIVER, oopDesc::is_byteArray(), klassOopDesc::klass_part(), Klass::lookup(), markSymbol(), methodOopDesc::print_codes(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( behaviorPrimitives::classVariableAt  ,
oop  behavior,
oop  index 
)

Definition at line 102 of file behavior_prims.cpp.

References Klass::classVar_at(), oopDesc::is_klass(), oopDesc::is_smi(), klassOopDesc::klass_part(), markSymbol(), PROLOGUE_2, and smiOopDesc::value().

Here is the call graph for this function:


Generated on Mon Oct 9 13:37:50 2006 for Strongtalk VM by  doxygen 1.4.7