comparison src/gpu/hsail/vm/hsailArgumentsBase.cpp @ 18043:f55f2d400797

Fix some format strings
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 20:34:55 +0200
parents 310994c667a7
children
comparison
equal deleted inserted replaced
18042:3498d73280c8 18043:f55f2d400797
45 if (!_is_static) { 45 if (!_is_static) {
46 // First object in args should be 'this' 46 // First object in args should be 'this'
47 oop arg = _args->obj_at(_index++); 47 oop arg = _args->obj_at(_index++);
48 assert(arg->is_instance() && (!arg->is_array()), "First arg should be 'this'"); 48 assert(arg->is_instance() && (!arg->is_array()), "First arg should be 'this'");
49 if (TraceGPUInteraction) { 49 if (TraceGPUInteraction) {
50 tty->print_cr("[HSAIL] %s, instance method, this " PTR_FORMAT ", is a %s", argsBuilderName(), (address) arg, arg->klass()->external_name()); 50 tty->print_cr("[HSAIL] %s, instance method, this " INTPTR_FORMAT ", is a %s", argsBuilderName(), p2i(arg), arg->klass()->external_name());
51 } 51 }
52 pushObject(arg); 52 pushObject(arg);
53 } else { 53 } else {
54 if (TraceGPUInteraction) { 54 if (TraceGPUInteraction) {
55 tty->print_cr("[HSAIL] %s, static method", argsBuilderName()); 55 tty->print_cr("[HSAIL] %s, static method", argsBuilderName());
137 assert(java_lang_boxing_object::is_instance(arg, T_LONG), "arg type mismatch"); 137 assert(java_lang_boxing_object::is_instance(arg, T_LONG), "arg type mismatch");
138 138
139 jvalue jValue; 139 jvalue jValue;
140 java_lang_boxing_object::get_value(arg, &jValue); 140 java_lang_boxing_object::get_value(arg, &jValue);
141 if (TraceGPUInteraction) { 141 if (TraceGPUInteraction) {
142 tty->print_cr("[HSAIL] %s::do_long, _index=%d, value = %d", argsBuilderName(), _index - 1, jValue.j); 142 tty->print_cr("[HSAIL] %s::do_long, _index=%d, value = " JLONG_FORMAT, argsBuilderName(), _index - 1, jValue.j);
143 } 143 }
144 144
145 pushLong(jValue.j); 145 pushLong(jValue.j);
146 } 146 }
147 147
151 recordNullObjectParameter(); 151 recordNullObjectParameter();
152 } else { 152 } else {
153 assert(arg->is_array(), "arg type mismatch"); 153 assert(arg->is_array(), "arg type mismatch");
154 } 154 }
155 if (TraceGPUInteraction) { 155 if (TraceGPUInteraction) {
156 tty->print_cr("[HSAIL] %s::do_array, _index=%d, 0x%08x, is a %s", argsBuilderName(), _index - 1, (address) arg, 156 tty->print_cr("[HSAIL] %s::do_array, _index=%d, 0x" INTPTR_FORMAT ", is a %s", argsBuilderName(), _index - 1, p2i(arg),
157 arg == NULL ? "null" : arg->klass()->external_name()); 157 arg == NULL ? "null" : arg->klass()->external_name());
158 } 158 }
159 159
160 pushObject(arg); 160 pushObject(arg);
161 } 161 }
163 void HSAILArgumentsBase::do_object() { 163 void HSAILArgumentsBase::do_object() {
164 bool isLastParam = isLastParameter(); // determine this before incrementing _index 164 bool isLastParam = isLastParameter(); // determine this before incrementing _index
165 165
166 oop arg = _args->obj_at(_index++); 166 oop arg = _args->obj_at(_index++);
167 if (TraceGPUInteraction) { 167 if (TraceGPUInteraction) {
168 tty->print_cr("[HSAIL] %s::do_object, _index=%d, 0x%08x is a %s", argsBuilderName(), _index - 1, (address) arg, 168 tty->print_cr("[HSAIL] %s::do_object, _index=%d, 0x" INTPTR_FORMAT " is a %s", argsBuilderName(), _index - 1, p2i(arg),
169 arg == NULL ? "null" : arg->klass()->external_name()); 169 arg == NULL ? "null" : arg->klass()->external_name());
170 } 170 }
171 if (arg == NULL) { 171 if (arg == NULL) {
172 recordNullObjectParameter(); 172 recordNullObjectParameter();
173 } 173 }