121 union { 122 jdouble jd; 123 jint array[2]; 124 } x; 125 // Interpreter stack is reversed in memory: 126 // low memory location is in higher java local slot. 127 x.jd = value; 128 at(slot+1)->set_int(x.array[0]); 129 at(slot+0)->set_int(x.array[1]); 130 #endif 131 } 132 133 #ifndef PRODUCT 134 void StackValueCollection::print() { 135 for(int index = 0; index < size(); index++) { 136 tty->print("\t %2d ", index); 137 at(index)->print_on(tty); 138 if( at(index )->type() == T_INT && 139 index+1 < size() && 140 at(index+1)->type() == T_INT ) { 141 tty->print(" " INT64_FORMAT " (long)", long_at(index)); 142 tty->cr(); 143 tty->print("\t %.15e (double)", double_at(index)); 144 tty->print(" " PTR64_FORMAT " (longhex)", long_at(index)); 145 } 146 tty->cr(); 147 } 148 } 149 #endif | 121 union { 122 jdouble jd; 123 jint array[2]; 124 } x; 125 // Interpreter stack is reversed in memory: 126 // low memory location is in higher java local slot. 127 x.jd = value; 128 at(slot+1)->set_int(x.array[0]); 129 at(slot+0)->set_int(x.array[1]); 130 #endif 131 } 132 133 #ifndef PRODUCT 134 void StackValueCollection::print() { 135 for(int index = 0; index < size(); index++) { 136 tty->print("\t %2d ", index); 137 at(index)->print_on(tty); 138 if( at(index )->type() == T_INT && 139 index+1 < size() && 140 at(index+1)->type() == T_INT ) { 141 tty->print(" " INT64_FORMAT " (long)", (int64_t)long_at(index)); 142 tty->cr(); 143 tty->print("\t %.15e (double)", double_at(index)); 144 tty->print(" " PTR64_FORMAT " (longhex)", (int64_t)long_at(index)); 145 } 146 tty->cr(); 147 } 148 } 149 #endif |