comparison src/gpu/hsail/vm/hsailKernelArguments.hpp @ 13900:d9aad522d355

HSAIL: fixed bug in kernel argument logic Contributed-by: Tom Deneau <tom.deneau@amd.com>
author Doug Simon <doug.simon@oracle.com>
date Thu, 06 Feb 2014 22:47:41 +0100
parents 51584f76462d
children 3e7fa4fd9199
comparison
equal deleted inserted replaced
13899:d8b2bb096d83 13900:d9aad522d355
61 61
62 _length = args->length(); 62 _length = args->length();
63 _parameter_count = ArgumentCount(signature).size(); 63 _parameter_count = ArgumentCount(signature).size();
64 64
65 if (TraceGPUInteraction) { 65 if (TraceGPUInteraction) {
66 tty->print_cr("[HSAIL] sig:%s args length=%d", signature->as_C_string(), _length); 66 ResourceMark rm;
67 tty->print_cr("[HSAIL] sig:%s args length=%d, _parameter_count=%d", signature->as_C_string(), _length, _parameter_count);
67 } 68 }
68 if (!_is_static) { 69 if (!_is_static) {
69 // First object in args should be 'this' 70 // First object in args should be 'this'
70 oop arg = args->obj_at(_index++); 71 oop arg = args->obj_at(_index++);
71 assert(arg->is_instance() && (! arg->is_array()), "First arg should be 'this'"); 72 assert(arg->is_instance() && (! arg->is_array()), "First arg should be 'this'");
101 } 102 }
102 inline void do_short() { 103 inline void do_short() {
103 /* TODO : To be implemented */ 104 /* TODO : To be implemented */
104 guarantee(false, "do_short:NYI"); 105 guarantee(false, "do_short:NYI");
105 } 106 }
107
108 bool isLastParameter() {
109 return (_index == (_is_static ? _parameter_count - 1 : _parameter_count));
110 }
111
106 }; 112 };
107 113
108 #endif // KERNEL_ARGUMENTS_HPP 114 #endif // KERNEL_ARGUMENTS_HPP