author | never |
Wed, 06 Jan 2010 14:22:39 -0800 | |
changeset 4571 | 80b553bddc26 |
parent 670 | ddf3e9583f2f |
child 5547 | f4b087cbb361 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
670 | 2 |
* Copyright 2001-2008 Sun Microsystems, Inc. All Rights Reserved. |
1 | 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
20 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
|
21 |
* have any questions. |
|
22 |
* |
|
23 |
*/ |
|
24 |
||
25 |
class ciBitData; |
|
26 |
class ciCounterData; |
|
27 |
class ciJumpData; |
|
28 |
class ciReceiverTypeData; |
|
29 |
class ciRetData; |
|
30 |
class ciBranchData; |
|
31 |
class ciArrayData; |
|
32 |
class ciMultiBranchData; |
|
218
a0e996680b05
6667615: (Escape Analysis) extend MDO to cache arguments escape state
kvn
parents:
1
diff
changeset
|
33 |
class ciArgInfoData; |
1 | 34 |
|
35 |
typedef ProfileData ciProfileData; |
|
36 |
||
37 |
class ciBitData : public BitData { |
|
38 |
public: |
|
39 |
ciBitData(DataLayout* layout) : BitData(layout) {}; |
|
40 |
}; |
|
41 |
||
42 |
class ciCounterData : public CounterData { |
|
43 |
public: |
|
44 |
ciCounterData(DataLayout* layout) : CounterData(layout) {}; |
|
45 |
}; |
|
46 |
||
47 |
class ciJumpData : public JumpData { |
|
48 |
public: |
|
49 |
ciJumpData(DataLayout* layout) : JumpData(layout) {}; |
|
50 |
}; |
|
51 |
||
52 |
class ciReceiverTypeData : public ReceiverTypeData { |
|
53 |
public: |
|
54 |
ciReceiverTypeData(DataLayout* layout) : ReceiverTypeData(layout) {}; |
|
55 |
||
56 |
void set_receiver(uint row, ciKlass* recv) { |
|
57 |
assert((uint)row < row_limit(), "oob"); |
|
58 |
set_intptr_at(receiver0_offset + row * receiver_type_row_cell_count, |
|
59 |
(intptr_t) recv); |
|
60 |
} |
|
61 |
||
62 |
ciKlass* receiver(uint row) { |
|
63 |
assert((uint)row < row_limit(), "oob"); |
|
64 |
ciObject* recv = (ciObject*)intptr_at(receiver0_offset + row * receiver_type_row_cell_count); |
|
65 |
assert(recv == NULL || recv->is_klass(), "wrong type"); |
|
66 |
return (ciKlass*)recv; |
|
67 |
} |
|
68 |
||
69 |
// Copy & translate from oop based ReceiverTypeData |
|
70 |
virtual void translate_from(ProfileData* data) { |
|
71 |
translate_receiver_data_from(data); |
|
72 |
} |
|
73 |
void translate_receiver_data_from(ProfileData* data); |
|
74 |
#ifndef PRODUCT |
|
75 |
void print_data_on(outputStream* st); |
|
76 |
void print_receiver_data_on(outputStream* st); |
|
77 |
#endif |
|
78 |
}; |
|
79 |
||
80 |
class ciVirtualCallData : public VirtualCallData { |
|
81 |
// Fake multiple inheritance... It's a ciReceiverTypeData also. |
|
82 |
ciReceiverTypeData* rtd_super() { return (ciReceiverTypeData*) this; } |
|
83 |
||
84 |
public: |
|
85 |
ciVirtualCallData(DataLayout* layout) : VirtualCallData(layout) {}; |
|
86 |
||
87 |
void set_receiver(uint row, ciKlass* recv) { |
|
88 |
rtd_super()->set_receiver(row, recv); |
|
89 |
} |
|
90 |
||