Mercurial > hg > graal-compiler
comparison src/gpu/hsail/vm/vmStructs_hsail.hpp @ 14768:3e9a960f0da1
HSAIL: preliminary deopt support
Contributed-by: Tom Deneau <tom.deneau@amd.com>
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 26 Mar 2014 17:33:54 +0100 |
parents | |
children | 2cae21d9f122 |
comparison
equal
deleted
inserted
replaced
14767:ded08e344e4a | 14768:3e9a960f0da1 |
---|---|
1 /* | |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 * | |
23 */ | |
24 | |
25 #ifndef GPU_HSAIL_VM_VMSTRUCTS_HSAIL_HPP | |
26 #define GPU_HSAIL_VM_VMSTRUCTS_HSAIL_HPP | |
27 | |
28 #include "gpu_hsail.hpp" | |
29 #include "gpu_hsail_Frame.hpp" | |
30 | |
31 // These are the CPU-specific fields, types and integer | |
32 // constants required by the Serviceability Agent. This file is | |
33 // referenced by vmStructs.cpp. | |
34 | |
35 #define VM_STRUCTS_GPU_HSAIL(nonstatic_field) \ | |
36 nonstatic_field(HSAILFrame, _pc_offset, jint) \ | |
37 nonstatic_field(HSAILFrame, _num_s_regs, jbyte) \ | |
38 nonstatic_field(HSAILFrame, _save_area[0], jlong) \ | |
39 \ | |
40 nonstatic_field(Hsail::HSAILKernelDeoptimization, _workitemid, jint) \ | |
41 nonstatic_field(Hsail::HSAILKernelDeoptimization, _actionAndReason, jint) \ | |
42 nonstatic_field(Hsail::HSAILKernelDeoptimization, _first_frame, HSAILFrame) \ | |
43 \ | |
44 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _deopt_occurred, jint) \ | |
45 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _deopt_next_index, jint) \ | |
46 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _never_ran_array, jboolean *) \ | |
47 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _deopt_save_states[0], Hsail::HSAILKernelDeoptimization) \ | |
48 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _deopt_save_states[1], Hsail::HSAILKernelDeoptimization) | |
49 | |
50 #define VM_TYPES_GPU_HSAIL(declare_type, declare_toplevel_type) \ | |
51 declare_toplevel_type(HSAILFrame) \ | |
52 declare_toplevel_type(HSAILFrame*) \ | |
53 declare_toplevel_type(Hsail::HSAILKernelDeoptimization) \ | |
54 declare_toplevel_type(Hsail::HSAILDeoptimizationInfo) | |
55 | |
56 #endif // GPU_HSAIL_VM_VMSTRUCTS_HSAIL_HPP |