smi_prims.cpp File Reference

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

Include dependency graph for smi_prims.cpp:

Go to the source code of this file.

Defines

#define ASSERT_RECEIVER   assert(receiver->is_smi(), "receiver must be smi")
#define SMI_RELATIONAL_OP(op)

Functions

 PRIM_DECL_2 (smiOopPrimitives::lessThan, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::greaterThan, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::lessThanOrEqual, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::greaterThanOrEqual, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::equal, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::notEqual, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::bitAnd, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::bitOr, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::bitXor, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::bitShift, oop receiver, oop argument)
 PRIM_DECL_2 (smiOopPrimitives::rawBitShift, oop receiver, oop argument)
 PRIM_DECL_1 (smiOopPrimitives::asObject, oop receiver)
 PRIM_DECL_1 (smiOopPrimitives::printCharacter, oop receiver)


Define Documentation

#define ASSERT_RECEIVER   assert(receiver->is_smi(), "receiver must be smi")

Definition at line 32 of file smi_prims.cpp.

#define SMI_RELATIONAL_OP ( op   ) 

Value:

if (!argument->is_smi())                                         \
    return markSymbol(vmSymbols::first_argument_has_wrong_type()); \
  int a = (int) receiver;                                          \
  int b = (int) argument;                                          \
  return a op b ? trueObj : falseObj

Definition at line 34 of file smi_prims.cpp.

Referenced by PRIM_DECL_2().


Function Documentation

PRIM_DECL_1 ( smiOopPrimitives::printCharacter  ,
oop  receiver 
)

Definition at line 156 of file smi_prims.cpp.

References ASSERT_RECEIVER, lprintf(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( smiOopPrimitives::asObject  ,
oop  receiver 
)

Definition at line 147 of file smi_prims.cpp.

References ASSERT_RECEIVER, objectIDTable::at(), objectIDTable::is_index_ok(), markSymbol(), PROLOGUE_1, and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_2 ( smiOopPrimitives::rawBitShift  ,
oop  receiver,
oop  argument 
)

Definition at line 130 of file smi_prims.cpp.

References assert, ASSERT_RECEIVER, Int_Tag, oopDesc::is_smi(), markSymbol(), oopSize, PROLOGUE_2, Tag_Size, and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_2 ( smiOopPrimitives::bitShift  ,
oop  receiver,
oop  argument 
)

Definition at line 101 of file smi_prims.cpp.

References assert, ASSERT_RECEIVER, Int_Tag, oopDesc::is_smi(), markSymbol(), oopSize, PROLOGUE_2, Tag_Size, and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_2 ( smiOopPrimitives::bitXor  ,
oop  receiver,
oop  argument 
)

Definition at line 93 of file smi_prims.cpp.

References ASSERT_RECEIVER, oopDesc::is_smi(), markSymbol(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( smiOopPrimitives::bitOr  ,
oop  receiver,
oop  argument 
)

Definition at line 85 of file smi_prims.cpp.

References ASSERT_RECEIVER, oopDesc::is_smi(), markSymbol(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( smiOopPrimitives::bitAnd  ,
oop  receiver,
oop  argument 
)

Definition at line 77 of file smi_prims.cpp.

References ASSERT_RECEIVER, oopDesc::is_smi(), markSymbol(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( smiOopPrimitives::notEqual  ,
oop  receiver,
oop  argument 
)

Definition at line 71 of file smi_prims.cpp.

References ASSERT_RECEIVER, PROLOGUE_2, and SMI_RELATIONAL_OP.

PRIM_DECL_2 ( smiOopPrimitives::equal  ,
oop  receiver,
oop  argument 
)

Definition at line 65 of file smi_prims.cpp.

References ASSERT_RECEIVER, PROLOGUE_2, and SMI_RELATIONAL_OP.

PRIM_DECL_2 ( smiOopPrimitives::greaterThanOrEqual  ,
oop  receiver,
oop  argument 
)

Definition at line 59 of file smi_prims.cpp.

References ASSERT_RECEIVER, PROLOGUE_2, and SMI_RELATIONAL_OP.

PRIM_DECL_2 ( smiOopPrimitives::lessThanOrEqual  ,
oop  receiver,
oop  argument 
)

Definition at line 53 of file smi_prims.cpp.

References ASSERT_RECEIVER, PROLOGUE_2, and SMI_RELATIONAL_OP.

PRIM_DECL_2 ( smiOopPrimitives::greaterThan  ,
oop  receiver,
oop  argument 
)

Definition at line 47 of file smi_prims.cpp.

References ASSERT_RECEIVER, PROLOGUE_2, and SMI_RELATIONAL_OP.

PRIM_DECL_2 ( smiOopPrimitives::lessThan  ,
oop  receiver,
oop  argument 
)

Definition at line 41 of file smi_prims.cpp.

References ASSERT_RECEIVER, PROLOGUE_2, and SMI_RELATIONAL_OP.


Generated on Mon Oct 9 13:45:03 2006 for Strongtalk VM by  doxygen 1.4.7