byteArray_prims.cpp File Reference

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

Include dependency graph for byteArray_prims.cpp:

Go to the source code of this file.

Defines

#define ASSERT_RECEIVER   assert(receiver->is_byteArray(), "receiver must be byte array")

Functions

 PRIM_DECL_2 (byteArrayPrimitives::allocateSize, oop receiver, oop argument)
 PRIM_DECL_1 (byteArrayPrimitives::size, oop receiver)
 PRIM_DECL_2 (byteArrayPrimitives::at, oop receiver, oop index)
 PRIM_DECL_3 (byteArrayPrimitives::atPut, oop receiver, oop index, oop value)
 PRIM_DECL_2 (byteArrayPrimitives::compare, oop receiver, oop argument)
 PRIM_DECL_1 (byteArrayPrimitives::intern, oop receiver)
 PRIM_DECL_2 (byteArrayPrimitives::characterAt, oop receiver, oop index)
 PRIM_DECL_2 (byteArrayPrimitives::at_all_put, oop receiver, oop value)
oop simplified (byteArrayOop result)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerFromSmallInteger, oop receiver, oop number)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerFromDouble, oop receiver, oop number)
 PRIM_DECL_3 (byteArrayPrimitives::largeIntegerFromString, oop receiver, oop argument, oop base)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerAdd, oop receiver, oop argument)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerSubtract, oop receiver, oop argument)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerMultiply, oop receiver, oop argument)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerDiv, oop receiver, oop argument)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerMod, oop receiver, oop argument)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerCompare, oop receiver, oop argument)
 PRIM_DECL_1 (byteArrayPrimitives::largeIntegerToFloat, oop receiver)
 PRIM_DECL_2 (byteArrayPrimitives::largeIntegerToString, oop receiver, oop base)
 PRIM_DECL_1 (byteArrayPrimitives::hash, oop receiver)


Define Documentation

#define ASSERT_RECEIVER   assert(receiver->is_byteArray(), "receiver must be byte array")

Definition at line 31 of file byteArray_prims.cpp.


Function Documentation

PRIM_DECL_1 ( byteArrayPrimitives::hash  ,
oop  receiver 
)

Definition at line 398 of file byteArray_prims.cpp.

References as_smiOop(), ASSERT_RECEIVER, and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( byteArrayPrimitives::largeIntegerToFloat  ,
oop  receiver 
)

Definition at line 366 of file byteArray_prims.cpp.

References Integer::as_double(), ASSERT_RECEIVER, markSymbol(), oopFactory::new_double(), byteArrayOopDesc::number(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( byteArrayPrimitives::intern  ,
oop  receiver 
)

Definition at line 129 of file byteArray_prims.cpp.

References ASSERT_RECEIVER, symbolTable::lookup(), PROLOGUE_1, and Universe::symbol_table.

Here is the call graph for this function:

PRIM_DECL_1 ( byteArrayPrimitives::size  ,
oop  receiver 
)

Definition at line 64 of file byteArray_prims.cpp.

References as_smiOop(), ASSERT_RECEIVER, and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerToString  ,
oop  receiver,
oop  base 
)

Definition at line 379 of file byteArray_prims.cpp.

References ASSERT_RECEIVER, IntegerOps::Integer_to_string(), IntegerOps::Integer_to_string_result_size_in_bytes(), oopDesc::is_smi(), markSymbol(), oopFactory::new_byteArray(), byteArrayOopDesc::number(), PROLOGUE_1, and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerCompare  ,
oop  receiver,
oop  argument 
)

Definition at line 345 of file byteArray_prims.cpp.

References as_smiOop(), ASSERT_RECEIVER, IntegerOps::cmp(), oopDesc::is_byteArray(), Integer::is_valid(), markSymbol(), byteArrayOopDesc::number(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerMod  ,
oop  receiver,
oop  argument 
)

Definition at line 322 of file byteArray_prims.cpp.

References Klass::allocateObjectSize(), ASSERT_RECEIVER, oopDesc::is_byteArray(), Integer::is_valid(), Integer::is_zero(), oopDesc::klass(), klassOopDesc::klass_part(), markSymbol(), IntegerOps::mod(), IntegerOps::mod_result_size_in_bytes(), byteArrayOopDesc::number(), PROLOGUE_2, and simplified().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerDiv  ,
oop  receiver,
oop  argument 
)

Definition at line 299 of file byteArray_prims.cpp.

References Klass::allocateObjectSize(), ASSERT_RECEIVER, IntegerOps::div(), IntegerOps::div_result_size_in_bytes(), oopDesc::is_byteArray(), Integer::is_valid(), Integer::is_zero(), oopDesc::klass(), klassOopDesc::klass_part(), markSymbol(), byteArrayOopDesc::number(), PROLOGUE_2, and simplified().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerMultiply  ,
oop  receiver,
oop  argument 
)

Definition at line 277 of file byteArray_prims.cpp.

References Klass::allocateObjectSize(), ASSERT_RECEIVER, oopDesc::is_byteArray(), Integer::is_valid(), oopDesc::klass(), klassOopDesc::klass_part(), markSymbol(), IntegerOps::mul(), IntegerOps::mul_result_size_in_bytes(), byteArrayOopDesc::number(), PROLOGUE_2, and simplified().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerSubtract  ,
oop  receiver,
oop  argument 
)

Definition at line 255 of file byteArray_prims.cpp.

References Klass::allocateObjectSize(), ASSERT_RECEIVER, oopDesc::is_byteArray(), Integer::is_valid(), oopDesc::klass(), klassOopDesc::klass_part(), markSymbol(), byteArrayOopDesc::number(), PROLOGUE_2, simplified(), IntegerOps::sub(), and IntegerOps::sub_result_size_in_bytes().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerAdd  ,
oop  receiver,
oop  argument 
)

Definition at line 233 of file byteArray_prims.cpp.

References IntegerOps::add(), IntegerOps::add_result_size_in_bytes(), Klass::allocateObjectSize(), ASSERT_RECEIVER, oopDesc::is_byteArray(), Integer::is_valid(), oopDesc::klass(), klassOopDesc::klass_part(), markSymbol(), byteArrayOopDesc::number(), PROLOGUE_2, and simplified().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerFromDouble  ,
oop  receiver,
oop  number 
)

Definition at line 201 of file byteArray_prims.cpp.

References assert, IntegerOps::double_to_Integer(), IntegerOps::double_to_Integer_result_size_in_bytes(), oopDesc::is_double(), oopDesc::is_klass(), klassOopDesc::klass_part(), markSymbol(), byteArrayOopDesc::number(), Klass::oop_is_byteArray(), PROLOGUE_2, and doubleOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::largeIntegerFromSmallInteger  ,
oop  receiver,
oop  number 
)

Definition at line 185 of file byteArray_prims.cpp.

References assert, IntegerOps::int_to_Integer(), IntegerOps::int_to_Integer_result_size_in_bytes(), oopDesc::is_klass(), oopDesc::is_smi(), klassOopDesc::klass_part(), markSymbol(), byteArrayOopDesc::number(), Klass::oop_is_byteArray(), PROLOGUE_2, and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::at_all_put  ,
oop  receiver,
oop  value 
)

Definition at line 156 of file byteArray_prims.cpp.

References ASSERT_RECEIVER, oopDesc::is_smi(), byteArrayOopDesc::length(), markSymbol(), PROLOGUE_2, and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::characterAt  ,
oop  receiver,
oop  index 
)

Definition at line 137 of file byteArray_prims.cpp.

References Universe::asciiCharacters(), ASSERT_RECEIVER, byteArrayOopDesc::byte_at(), oopDesc::is_smi(), markSymbol(), objArrayOopDesc::obj_at(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::compare  ,
oop  receiver,
oop  argument 
)

Definition at line 113 of file byteArray_prims.cpp.

References as_smiOop(), ASSERT_RECEIVER, oopDesc::is_byteArray(), oopDesc::is_doubleByteArray(), markSymbol(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::at  ,
oop  receiver,
oop  index 
)

Definition at line 71 of file byteArray_prims.cpp.

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

Here is the call graph for this function:

PRIM_DECL_2 ( byteArrayPrimitives::allocateSize  ,
oop  receiver,
oop  argument 
)

Definition at line 33 of file byteArray_prims.cpp.

References byteArrayOopDesc::addr(), Universe::allocate(), as_byteArrayOop(), assert, memOopDesc::header_size(), memOopDesc::initialize_body(), memOopDesc::initialize_header(), oopDesc::is_klass(), oopDesc::is_smi(), klassOopDesc::klass_part(), markSymbol(), Klass::non_indexable_size(), Klass::oop_is_byteArray(), oopSize, PROLOGUE_2, and roundTo.

Here is the call graph for this function:

PRIM_DECL_3 ( byteArrayPrimitives::largeIntegerFromString  ,
oop  receiver,
oop  argument,
oop  base 
)

Definition at line 216 of file byteArray_prims.cpp.

References Klass::allocateObjectSize(), assert, byteArrayOopDesc::chars(), oopDesc::is_byteArray(), oopDesc::is_klass(), oopDesc::is_smi(), oopDesc::klass(), klassOopDesc::klass_part(), markSymbol(), byteArrayOopDesc::number(), Klass::oop_is_byteArray(), PROLOGUE_3, IntegerOps::string_to_Integer(), IntegerOps::string_to_Integer_result_size_in_bytes(), and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_3 ( byteArrayPrimitives::atPut  ,
oop  receiver,
oop  index,
oop  value 
)

Definition at line 87 of file byteArray_prims.cpp.

References ASSERT_RECEIVER, byteArrayOopDesc::byte_at_put(), oopDesc::is_smi(), markSymbol(), PROLOGUE_3, and smiOopDesc::value().

Here is the call graph for this function:

oop simplified ( byteArrayOop  result  ) 

Definition at line 178 of file byteArray_prims.cpp.

References Integer::as_smi(), and byteArrayOopDesc::number().

Referenced by PRIM_DECL_2().

Here is the call graph for this function:


Generated on Mon Oct 9 13:38:22 2006 for Strongtalk VM by  doxygen 1.4.7