Mercurial > hg > truffle
comparison src/gpu/hsail/vm/hsailKernelArguments.hpp @ 13888:51584f76462d
pulled Ptx and Hsail classes out of gpu class namespace
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 06 Feb 2014 11:14:19 +0100 |
parents | 89fbf495e589 |
children | d9aad522d355 |
comparison
equal
deleted
inserted
replaced
13887:f3e4f746e9c6 | 13888:51584f76462d |
---|---|
24 | 24 |
25 #ifndef KERNEL_ARGUMENTS_HSAIL_HPP | 25 #ifndef KERNEL_ARGUMENTS_HSAIL_HPP |
26 #define KERNEL_ARGUMENTS_HSAIL_HPP | 26 #define KERNEL_ARGUMENTS_HSAIL_HPP |
27 | 27 |
28 #include "runtime/gpu.hpp" | 28 #include "runtime/gpu.hpp" |
29 #include "hsail/vm/gpu_hsail.hpp" | |
29 #include "runtime/signature.hpp" | 30 #include "runtime/signature.hpp" |
30 | 31 |
31 class HSAILKernelArguments : public SignatureIterator { | 32 class HSAILKernelArguments : public SignatureIterator { |
32 friend class gpu::Hsail; | 33 friend class Hsail; |
33 | 34 |
34 public: | 35 public: |
35 | 36 |
36 private: | 37 private: |
37 // Array of java argument oops | 38 // Array of java argument oops |
69 oop arg = args->obj_at(_index++); | 70 oop arg = args->obj_at(_index++); |
70 assert(arg->is_instance() && (! arg->is_array()), "First arg should be 'this'"); | 71 assert(arg->is_instance() && (! arg->is_array()), "First arg should be 'this'"); |
71 if (TraceGPUInteraction) { | 72 if (TraceGPUInteraction) { |
72 tty->print_cr("[HSAIL] instance method, this 0x%08x, is a %s", (address) arg, arg->klass()->external_name()); | 73 tty->print_cr("[HSAIL] instance method, this 0x%08x, is a %s", (address) arg, arg->klass()->external_name()); |
73 } | 74 } |
74 bool pushed = gpu::Hsail::_okra_push_object(kernel, arg); | 75 bool pushed = Hsail::_okra_push_object(kernel, arg); |
75 assert(pushed == true, "'this' push failed"); | 76 assert(pushed == true, "'this' push failed"); |
76 } else { | 77 } else { |
77 if (TraceGPUInteraction) { | 78 if (TraceGPUInteraction) { |
78 tty->print_cr("[HSAIL] static method"); | 79 tty->print_cr("[HSAIL] static method"); |
79 } | 80 } |