util.cpp File Reference

#include "incls/_precompiled.incl"
#include "incls/_util.cpp.incl"
#include <string.h>

Include dependency graph for util.cpp:

Go to the source code of this file.

Defines

#define LOOP_UNROLL(count, body)
#define DO_UP(from)   LOOP_UNROLL(count, *to++ = from)
#define DO_DOWN(from)   LOOP_UNROLL(count, *--to = from)

Functions

void printIndent ()
void copy_oops_down (oop *from, oop *to, int count)
char * copy_string (char *s)
char * copy_c_heap_string (char *s)
char * copy_string (char *s, smi len)
void breakpoint ()
void error_breakpoint ()

Variables

int Indent = 0
oop catchThisOne


Define Documentation

#define DO_DOWN ( from   )     LOOP_UNROLL(count, *--to = from)

Definition at line 58 of file util.cpp.

Referenced by copy_oops_down().

#define DO_UP ( from   )     LOOP_UNROLL(count, *to++ = from)

Definition at line 57 of file util.cpp.

#define LOOP_UNROLL ( count,
body   ) 

Value:

{                                                                         \
    assert(count >= 0, "cannot have negative count in loop unroll");          \
    int __c1__ = count;                                                      \
    for (int __c__ = __c1__ >> 3; __c__; __c__ --) {                         \
    body;       body;                                                         \
    body;       body;                                                         \
    body;       body;                                                         \
    body;       body;                                                         \
  }                                                                           \
    switch (maskBits(__c1__, nthMask(3))) {                                   \
   case 7:      body;                                                         \
   case 6:      body;                                                         \
   case 5:      body;                                                         \
   case 4:      body;                                                         \
   case 3:      body;                                                         \
   case 2:      body;                                                         \
   case 1:      body;                                                         \
   case 0:      ;                                                             \
  } }

Definition at line 36 of file util.cpp.


Function Documentation

void breakpoint (  ) 

Definition at line 148 of file util.cpp.

References os::breakpoint(), and flush_logFile().

Here is the call graph for this function:

char* copy_c_heap_string ( char *  s  ) 

Definition at line 132 of file util.cpp.

References NEW_C_HEAP_ARRAY.

void copy_oops_down ( oop from,
oop to,
int  count 
)

Definition at line 91 of file util.cpp.

References assert, DO_DOWN, maskBits, and Tag_Size.

Referenced by copy_oops_overlapping().

char* copy_string ( char *  s,
smi  len 
)

Definition at line 139 of file util.cpp.

References NEW_RESOURCE_ARRAY.

char* copy_string ( char *  s  ) 

Definition at line 125 of file util.cpp.

Referenced by byteArrayOopDesc::copy_null_terminated().

void error_breakpoint (  ) 

Definition at line 153 of file util.cpp.

References breakpoint().

Here is the call graph for this function:

void printIndent (  ) 

Definition at line 31 of file util.cpp.

References Indent, and lprintf().

Here is the call graph for this function:


Variable Documentation

oop catchThisOne

Definition at line 146 of file util.cpp.

int Indent = 0

Definition at line 29 of file util.cpp.

Referenced by printIndent().


Generated on Mon Oct 9 13:46:41 2006 for Strongtalk VM by  doxygen 1.4.7