< prev index next >

src/hotspot/cpu/ppc/c1_MacroAssembler_ppc.hpp

Print this page

25 
26 #ifndef CPU_PPC_C1_MACROASSEMBLER_PPC_HPP
27 #define CPU_PPC_C1_MACROASSEMBLER_PPC_HPP
28 
29   void pd_init() { /* nothing to do */ }
30 
31  public:
32    void try_allocate(
33     Register obj,                      // result: pointer to object after successful allocation
34     Register var_size_in_bytes,        // object size in bytes if unknown at compile time; invalid otherwise
35     int      con_size_in_bytes,        // object size in bytes if   known at compile time
36     Register t1,                       // temp register
37     Register t2,                       // temp register
38     Label&   slow_case                 // continuation point if fast allocation fails
39   );
40 
41   void initialize_header(Register obj, Register klass, Register len, Register t1, Register t2);
42   void initialize_body(Register base, Register index);
43   void initialize_body(Register obj, Register tmp1, Register tmp2, int obj_size_in_bytes, int hdr_size_in_bytes);
44 
45   // locking/unlocking
46   void lock_object  (Register Rmark, Register Roop, Register Rbox, Register Rscratch, Label& slow_case);
47   void unlock_object(Register Rmark, Register Roop, Register Rbox,                    Label& slow_case);
48 
49   void initialize_object(
50     Register obj,                      // result: pointer to object after successful allocation
51     Register klass,                    // object klass
52     Register var_size_in_bytes,        // object size in bytes if unknown at compile time; invalid otherwise
53     int      con_size_in_bytes,        // object size in bytes if   known at compile time
54     Register t1,                       // temp register
55     Register t2                        // temp register
56   );
57 
58   // Allocation of fixed-size objects
59   // (Can also be used to allocate fixed-size arrays, by setting
60   // hdr_size correctly and storing the array length afterwards.)
61   void allocate_object(
62     Register obj,                      // result: pointer to object after successful allocation
63     Register t1,                       // temp register
64     Register t2,                       // temp register
65     Register t3,                       // temp register
66     int      hdr_size,                 // object header size in words
67     int      obj_size,                 // object size in words
68     Register klass,                    // object klass

25 
26 #ifndef CPU_PPC_C1_MACROASSEMBLER_PPC_HPP
27 #define CPU_PPC_C1_MACROASSEMBLER_PPC_HPP
28 
29   void pd_init() { /* nothing to do */ }
30 
31  public:
32    void try_allocate(
33     Register obj,                      // result: pointer to object after successful allocation
34     Register var_size_in_bytes,        // object size in bytes if unknown at compile time; invalid otherwise
35     int      con_size_in_bytes,        // object size in bytes if   known at compile time
36     Register t1,                       // temp register
37     Register t2,                       // temp register
38     Label&   slow_case                 // continuation point if fast allocation fails
39   );
40 
41   void initialize_header(Register obj, Register klass, Register len, Register t1, Register t2);
42   void initialize_body(Register base, Register index);
43   void initialize_body(Register obj, Register tmp1, Register tmp2, int obj_size_in_bytes, int hdr_size_in_bytes);
44 




45   void initialize_object(
46     Register obj,                      // result: pointer to object after successful allocation
47     Register klass,                    // object klass
48     Register var_size_in_bytes,        // object size in bytes if unknown at compile time; invalid otherwise
49     int      con_size_in_bytes,        // object size in bytes if   known at compile time
50     Register t1,                       // temp register
51     Register t2                        // temp register
52   );
53 
54   // Allocation of fixed-size objects
55   // (Can also be used to allocate fixed-size arrays, by setting
56   // hdr_size correctly and storing the array length afterwards.)
57   void allocate_object(
58     Register obj,                      // result: pointer to object after successful allocation
59     Register t1,                       // temp register
60     Register t2,                       // temp register
61     Register t3,                       // temp register
62     int      hdr_size,                 // object header size in words
63     int      obj_size,                 // object size in words
64     Register klass,                    // object klass
< prev index next >